YSF help
#7

Код:
forward timer();

CMD:stopfly(playerid, params[]) 
{
    #pragma unused params
    SetTimer("timer",5000,false);  // Allow enough time for the player to fall very close to the ground
    if(!(IsPlayerAdmin(playerid)) 
    {    
         SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not an RCON admin.");
    }  
    return 1;
}
public timer();
{
    SendClientMessage(playerid, yourcolor, "You've stopped flying."); 
    SetPlayerHealth(playerid, 100);
   //  SetGravity(integer);
}
Does this work for you, good sir?
Please note: Edit the gravity to work with the timer, if possible.
Reply


Messages In This Thread
YSF help - by Rivera - 14.04.2011, 19:36
Re: YSF help - by Rivera - 14.04.2011, 19:41
Re: YSF help - by Max_Coldheart - 14.04.2011, 19:49
Re: YSF help - by Rivera - 14.04.2011, 19:53
Re: YSF help - by Rivera - 14.04.2011, 19:55
Re: YSF help - by Rivera - 15.04.2011, 07:23
Re: YSF help - by Jake__ - 15.04.2011, 08:49
Re: YSF help - by Rivera - 15.04.2011, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)