SA-MP Forums Archive
Calling a command when enter cp - 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)
+--- Thread: Calling a command when enter cp (/showthread.php?tid=313644)



Calling a command when enter cp - Face9000 - 26.01.2012

Hello guys,it's possible to call a command when a player enter in a checkpoint?Because i've maked a /rob command and i need to use it for different checkpoint (different places to rob),and i was thinking if it's possible,thanks.


Re: Calling a command when enter cp - MP2 - 26.01.2012

Which command system are you using? (i.e. ZCMD)

EDIT: Actually, thinking about it, shouldn't you have different systems for shop robberies and player robbers? Are you talking about only one of these or what? Robbing what?


Re: Calling a command when enter cp - Face9000 - 26.01.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
Which command system are you using? (i.e. ZCMD)

EDIT: Actually, thinking about it, shouldn't you have different systems for shop robberies and player robbers? Are you talking about only one of these or what? Robbing what?
I'm using ZCMD.

No,i use /rob command for robbing shops and players.


Re: Calling a command when enter cp - MP2 - 26.01.2012

Yes but surely they wouldn't use the same system.


Re: Calling a command when enter cp - Universal - 26.01.2012

If you're using ZCMD:

pawn Код:
CallLocalFunction( "cmd_name", "d", playerid); // cmd_name is the name you use after COMMAND:<here> or CMD:<here>, so for example: COMMAND:rob would be cmd_rob



Re: Calling a command when enter cp - Face9000 - 26.01.2012

Thank you! +rep.