SA-MP Forums Archive
cmds dont work in a veh? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cmds dont work in a veh? (/showthread.php?tid=176822)



cmds dont work in a veh? - thomas.. - 14.09.2010

okay, so i have this problem.

i type any command i have in my script when im in a vehicle, nothing happens.

however, when im on foot, those commands work?

i dont know how this has happened.. alot of my cmds need the player to be in the vehicle


Re: cmds dont work in a veh? - DragonBlaster50 - 14.09.2010

Show One of the commands witch do now work.


Re: cmds dont work in a veh? - thomas.. - 14.09.2010

Quote:
Originally Posted by DragonBlaster50
Посмотреть сообщение
Show One of the commands witch do now work.
what

8char


Re: cmds dont work in a veh? - DarrenReeder - 14.09.2010

go to http://www.pastebin.com and put your commands in there which do not work while you are in a vehicle...

Then tell us the URL to get to the page with your commands on it


Re: cmds dont work in a veh? - Toni - 14.09.2010

You need to check if the player is in a vehicle.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)



Re: cmds dont work in a veh? - thomas.. - 14.09.2010

no, the commands dont work in a vehicle, here are the cmds:

http://pastebin.com/T6G7Ukh0


Re: cmds dont work in a veh? - Toni - 14.09.2010

Well, let me try to get it more clear, when you type the command inside a vehicle, does it say "SERVER: Unknown command" or does it do nothing?


Re: cmds dont work in a veh? - thomas.. - 14.09.2010

Yes, when you type the cmd in a vehicle, it does nothing


Re: cmds dont work in a veh? - thomas.. - 15.09.2010

bump -.-


Re: cmds dont work in a veh? - Mike_Peterson - 15.09.2010

happens at all commands?