28.04.2010, 18:26
pawn Код:
if(strcmp(cmd, "/tc3", true) == 0 || strcmp(cmd, "/tv3", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
new keycar = PlayerInfo[playerid][pPcarkey3];
if(keycar != 255)
{
if(!unwanted[keycar]) SetVehicleToRespawn(keycar);
else SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle is in use try it later");
}
}
return 1;
}