What's the problem? else
#4

Quote:
Originally Posted by Namer
Посмотреть сообщение
just quick example! now you have to set that when you start earthquake set there "
pawn Код:
EarthQuake = 1;
pawn Код:
new EarthQuake; // define this at top where you have other variables
CMD:stearth(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(EarthQuake == 1)
        {
            SendClientMessage(playerid, -1, "{00CC00}[SUCCESS]: You have stopped the earthquake.");
            DestroyObject(playerid);
            EarthQuake = 0;
            SetPlayerDrunkLevel(playerid, 0);
            StopAudioStreamForPlayer(playerid);
        } else return SendClientMessage(playerid, -1, "{FF0000}ERROR: No earthquake going on now.");
    } else return SendClientMessage(playerid, -1, "{FF0000}Only rcon admins can use this command!");
    return 1;
}
works perfectly

1 prob

after i stop the earthquake if i use /earthquake again i crash and the object won't dissapear
Reply


Messages In This Thread
What's the problem? else - by Glossy42O - 18.12.2014, 06:04
AW: What's the problem? else - by Flori - 18.12.2014, 06:07
Re: What's the problem? else - by JeaSon - 18.12.2014, 06:17
Re: What's the problem? else - by Glossy42O - 18.12.2014, 06:30
Re: What's the problem? else - by Ada32 - 18.12.2014, 11:56
Re: What's the problem? else - by Glossy42O - 18.12.2014, 12:19
Re: What's the problem? else - by Ada32 - 18.12.2014, 12:28
Re: What's the problem? else - by BroZeus - 18.12.2014, 12:56
Re: What's the problem? else - by Kyance - 18.12.2014, 13:18
Re: What's the problem? else - by BroZeus - 18.12.2014, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)