!
, :
/lockcar, , , , .
:
.PHP :
if(strcmp(cmd,"/lockcar",true)==0)
{
new keycar = PlayerInfo[playerid][pCarKey];
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(CarInfo[keycar][ownedvehicle],i,0,1);
}
format(string, sizeof(string), "~w~Car~n~Lock");
GameTextForPlayer(playerid, string, 10000, 3);
CarInfo[keycar][cLock] = 1;
return 1;
}
}