object destroy
#4

For example:

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);
and the command to destroy it should be like this:

pawn Код:
CMD:destroyobjects(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerAdmin(playerid)) // remove this if you want (rcon administrator)
        {
            DestroyObject(nana);
        }
    }
    return 1;
}
I've used ZCMD, so if you're going to use it make sure you have
pawn Код:
#include <zcmd>
by Zeex in the top of your script!.
Reply


Messages In This Thread
object destroy - by hillko - 21.04.2014, 02:41
Re: object destroy - by rangerxxll - 21.04.2014, 03:11
Re: object destroy - by hillko - 21.04.2014, 03:41
Re: object destroy - by Stanford - 21.04.2014, 04:36
Re: object destroy - by hillko - 21.04.2014, 04:44
Re: object destroy - by Stanford - 21.04.2014, 04:52
Re: object destroy - by hillko - 21.04.2014, 04:59
Re: object destroy - by Stanford - 21.04.2014, 05:11
Re: object destroy - by hillko - 21.04.2014, 05:34
Re: object destroy - by Stanford - 21.04.2014, 06:02

Forum Jump:


Users browsing this thread: 4 Guest(s)