yonutzz Posted February 12, 2012 Report Share Posted February 12, 2012 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 More sharing options...
Question
yonutzz
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