Help my code
#4

Well, first you need good command processor, for example: YashasSamaga's SmartCMD (which is very powerful cmd processor), place it in pawno/includes directory and then include it
Код HTML:
#include <smartcmd>
Then it depends what you want. If you want to spawn for example NRG-500 when you type command
"abc", the code would look like this:
PHP код:
CMD:abc(cmdidplayeridparams[])
{
        new 
Float:xFloat:yFloat:z;
        
GetPlayerPos(playeridxyz);
        
CreateVehicle(522x+0.5yz0.003, -1);
    return 
CMD_SUCCESS;

But if you want command which can spawn any vehicle (by writing vehicle id after command), you can search for it on this forum.
Reply


Messages In This Thread
Help my code - by tobi736 - 25.07.2018, 09:17
Re: Help my code - by 3417512908 - 25.07.2018, 10:42
Re: Help my code - by Florin48 - 25.07.2018, 10:42
Re: Help my code - by DAKYSKYE - 25.07.2018, 10:57
Re: Help my code - by tobi736 - 26.07.2018, 08:39

Forum Jump:


Users browsing this thread: 1 Guest(s)