25.07.2018, 10:57
(
Последний раз редактировалось DAKYSKYE; 25.07.2018 в 10:58.
Причина: Correcting message.
)
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
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:
But if you want command which can spawn any vehicle (by writing vehicle id after command), you can search for it on this forum.
Код HTML:
#include <smartcmd>
"abc", the code would look like this:
PHP код:
CMD:abc(cmdid, playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateVehicle(522, x+0.5, y, z, 0.0, 0, 3, -1);
return CMD_SUCCESS;
}