21.04.2014, 04:36
For example:
Under ongamemodeinit you put the object like this:
and the command to destroy it should be like this:
I've used ZCMD, so if you're going to use it make sure you have
by Zeex in the top of your script!.
Under ongamemodeinit you put the object like this:
pawn Код:
new nana = CreateObject(1318, 3214.0, 2412.3, 13.24, 0.0, 0.0, 0.0, 90.0);
pawn Код:
CMD:destroyobjects(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid)) // remove this if you want (rcon administrator)
{
DestroyObject(nana);
}
}
return 1;
}
pawn Код:
#include <zcmd>