Snow problem!
#2

pawn Код:
CMD:snow(playerid, params[])
{
    if(!snowtf[playerid])
    {
        SetPlayerAttachedObject(playerid, 0, 18864, 2, 25, 7, -10);
        snowtf[ playerid ] = true;
       
        //SendClientMessage(playerid, -1, "* snow on");
    }
    else
    {
        RemovePlayerAttachedObject(playerid, 0);
        snowtf[ playerid ] = false;
       
        //SendClientMessage(playerid, -1, "* snow off");
    }
    return 1;
}
Worked for me - You can remove the "snow[ MAX_PLAYERS ]", and just keep the "snowtf" variable.
Reply


Messages In This Thread
Snow problem! - by cnoopers - 23.12.2014, 17:24
Re: Snow problem! - by Kyance - 23.12.2014, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)