How to make if i type it it'll show objects?
#4

Becareful if you do the command twice it'll duplicate the same objects so do the following.


pawn Код:
new earthquake;
CMD:earthquake(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(earthquake == 0)
        {
            SendClientMessage(playerid, -1, "You have started an earthquake event!");
            earthquake = 1;
            //createobject code here
        }
        else
        {
            SendClientMessage(playerid,-1,"Earthquake is already started.");
        }
    }
    else
    {
        return SendClientMessage(playerid, -1, "{FF0000}You're not rcon administrator.");
    }
    return 1;
}
Reply


Messages In This Thread
How to make if i type it it'll show objects? - by Glossy42O - 09.12.2014, 06:23
Re: How to make if i type it it'll show objects? - by MasonSFW - 09.12.2014, 07:43
Re: How to make if i type it it'll show objects? - by Glossy42O - 09.12.2014, 07:52
Re: How to make if i type it it'll show objects? - by DaniceMcHarley - 09.12.2014, 08:10

Forum Jump:


Users browsing this thread: 3 Guest(s)