I rlly need help!
#1

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.
Reply
#2

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...
Reply
#3

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
Reply
#4

Are you using any command processor (zCMD, yCMD etc?) or just strcmp OnPlayerCommandText?
Reply
#5

Currently onplayercommandtext cause i dont know how to convert, can someone help me convert to like dcmd or something?
Reply
#6

dunno know what u mean but i think this is it
https://sampwiki.blast.hk/wiki/CallRemoteFunction
Reply
#7

Then, put this inside your command:
pawn Код:
OnPlayerCommandText(playerid, "/commandname");
Reply


Forum Jump:


Users browsing this thread: