Jump to content
  • 0

/lock


yonutzz

Question

salut am un gm cu masini personale.Dar dupa ce cumpar masina nu merge sa dau /lock nu se blocheaza masina, si merge oricine sa o ia.Cum fac sa nu poata sa o ia alt cineva in afara de proprietar?

[pawn]if(strcmp(cmd,"/lock", true) == 0)

    {

        if (PlayerInfo[playerid][pAdmin] >= 0 )

{

        if(IsPlayerConnected(playerid))

    {

new x_sel[256];

x_sel = strtok(cmdtext, idx);

if(!strlen(x_sel))

{

SendClientMessage(playerid, COLOR_LIGHTRED,"USAGE: /lock [1/2/3/4]");

return 1;

}

        if(strcmp(x_sel," 1 ",true) == 0)

        {

            for(new i = 0; i < MAX_PLAYERS; i++)

{

                Ban(i);

}

}

}

}

else

{

    SendClientMessage(playerid, COLOR_GRAD1,"NU ai masina");

return 1;

}

}[/pawn]

asta e comanda ..

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.