09.12.2014, 08:10
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;
}