18.12.2014, 12:56
As far as i see the script has many bugs..
It would be like this -
It would be like this -
pawn Код:
new earth[MAX_PLAYERS];//on top
earth[playerid] = 1;//put this where u begin the earthquick
CMD:stearth(playerid, params[])
{
if(!IsPlayerAdmin(playerid))retrun SendClientMessage(playerid, -1, "{FF0000}Only rcon admins can use this command!");
if(earth[player] == 0)retrun SendClientMessage(playerid, -1, "{FF0000}ERROR: No earthquake going on now.");
SendClientMessage(playerid, -1, "{00CC00}[SUCCESS]: You have stopped the earthquake.");
// DestroyObject(playerid); You need to put object id returned by createobject() here
SetPlayerDrunkLevel(playerid, 0);
StopAudioStreamForPlayer(playerid);
earth[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
earth[playerid] = 0;
return 1;
}