04.10.2010, 11:31
Why wont this code work?
when i type the command /cancelcar
it only "TogglePlayerControllable(playerid, 1);" in a few seconds
then it goes back to "TogglePlayerControllable(playerid, 0);" i want it to stop toggleplayerconstrol..
when i type the command /cancelcar
it only "TogglePlayerControllable(playerid, 1);" in a few seconds
then it goes back to "TogglePlayerControllable(playerid, 0);" i want it to stop toggleplayerconstrol..
pawn Код:
if (strcmp(cmd, "/cancelcar", true) ==0)
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}