how to make a player stone when smoking?
#5

pawn Код:
dcmd_cig(playerid,params[])
{
    #pragma unused params
    if(GetPlayerSpecialAction(playerid) != 21)
    {
        SetPlayerSpecialAction(playerid,21);
        SetPlayerWeather(playerid, -66); // <== Stone weather
    }
    else
    {
        SetPlayerSpecialAction(playerid, 0);
        SetPlayerWeather(playerid, 3); // <== Normal weather
    }
    return 1;
}
I script blind without using pawno or testing in-game, so check it the weather id is -66 or -68 please.
Everything else should work.
Reply


Messages In This Thread
how to make a player stone when smoking? - by eblood1 - 08.08.2013, 04:13
Re: how to make a player stone when smoking? - by hossa - 08.08.2013, 04:16
Re: how to make a player stone when smoking? - by eblood1 - 08.08.2013, 04:23
Re: how to make a player stone when smoking? - by hossa - 08.08.2013, 04:25
Re: how to make a player stone when smoking? - by BullseyeHawk - 08.08.2013, 04:31
Re: how to make a player stone when smoking? - by eblood1 - 08.08.2013, 04:33
Re: how to make a player stone when smoking? - by hossa - 08.08.2013, 04:35
Re: how to make a player stone when smoking? - by NinjahZ - 08.08.2013, 04:37
Re: how to make a player stone when smoking? - by eblood1 - 08.08.2013, 04:41

Forum Jump:


Users browsing this thread: 1 Guest(s)