Cmd help
#4

Quote:
Originally Posted by FrankC
Посмотреть сообщение
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..

pawn Код:
if (strcmp(cmd, "/cancelcar", true) ==0)
        {
        TogglePlayerControllable(playerid, 1);
        RemovePlayerFromVehicle(playerid);
        return 1;
        }
Have you tried-...

pawn Код:
if (strcmp(cmd, "/cancelcar", true) ==0)
        {
        RemovePlayerFromVehicle(playerid);
        TogglePlayerControllable(playerid, 1);
        return 1;
        }
Don't know if it'll work though, but it will make the player controllable after he's been removed from the vehicle.
Reply


Messages In This Thread
Cmd help - by FrankC - 04.10.2010, 11:31
Re: Cmd help - by Rachael - 04.10.2010, 11:45
Re: Cmd help - by FrankC - 04.10.2010, 11:53
Re: Cmd help - by DevilG - 04.10.2010, 11:54
Re: Cmd help - by FrankC - 05.10.2010, 13:35
Re: Cmd help - by LarzI - 05.10.2010, 15:24
Re: Cmd help - by FrankC - 05.10.2010, 17:18

Forum Jump:


Users browsing this thread: 2 Guest(s)