SetTimer
#3

pawn Код:
COMMAND:acid(playerid, params[])
{
    SetPlayerWeather(playerid,90);
    //You will need SetTimerEx if you want to make change for the same
    //player that typed /acid.
    SetTimerEx("NormalWeather",40000,false,"i",playerid);
    //Else if you want to make change for all
    //use SetTimer("NormalWeather",40000,false);
    SetPlayerDrunkLevel(playerid, 3000);
    SetPlayerTime(playerid, 7, 00);
    SendClientMessage(playerid,0x43EE11FF,"You are on the effects of ACID drug now! Drink /coffee to stop hallucinating!");
    return 1;
}

forward NormalWeather(playerid);//If you are using SetTimerEx
//Else forward NormalWeather();

public NormalWeather(playerid)//public NormalWeather() if used SetTimer
{
    //Your code
    return 1;
}
Reply


Messages In This Thread
SetTimer - by R4VER - 19.08.2012, 06:41
Re: SetTimer - by RedJohn - 19.08.2012, 06:50
Re: SetTimer - by [MM]RoXoR[FS] - 19.08.2012, 07:04
Re: SetTimer - by Universal - 19.08.2012, 07:39
Re: SetTimer - by R4VER - 19.08.2012, 07:40

Forum Jump:


Users browsing this thread: 2 Guest(s)