I rlly need help! - 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: I rlly need help! (
/showthread.php?tid=197385)
I rlly need help! -
Rokzlive - 08.12.2010
1. How do i make a callback that executes a command.
So like if a person types /setmeup it will activate commands /armour /health /minigun /blah /blah, that sort of thing. Whats the callback to do that?
2. Trains
I want to make trains, like freight trains, passenger trains, with freight trailors and passenger trailors? How do i do that? Cause its pretty freaking hard to map it with MTA, since for one it does not have trains and its hard to get everything right.
Re: I rlly need help! -
Lorrden - 08.12.2010
at your first question; i don't know what plugins you are using but if you use dudb, dutils and dini you can make one command include another one by calling it...
Re: I rlly need help! -
Ruffles. - 08.12.2010
I think for the trains, plot an object on MTA that has the EXACT coords that you want for your train, just convert and use the co-ords and place your train there, if you have multiple, repeat it in a line
Re: I rlly need help! -
Lenny the Cup - 08.12.2010
Are you using any command processor (zCMD, yCMD etc?) or just strcmp OnPlayerCommandText?
Re: I rlly need help! -
Rokzlive - 08.12.2010
Currently onplayercommandtext cause i dont know how to convert, can someone help me convert to like dcmd or something?
Re: I rlly need help! -
Kitten - 08.12.2010
dunno know what u mean but i think this is it
https://sampwiki.blast.hk/wiki/CallRemoteFunction
Re: I rlly need help! -
Lenny the Cup - 08.12.2010
Then, put this inside your command:
pawn Код:
OnPlayerCommandText(playerid, "/commandname");