[HELP] Set a player in a place for a time
#2

Use timers

EDIT: Example:
pawn Код:
//on top
new gFlyTimer;
pawn Код:
//timer function
forward FlyTimer(playerid);
public FlyTimer(playerid)
{
     SetPlayerPos( playerid, 0.0, 0.0, 0.0 ); //This is where you will teleport AFTER 10 seconds
     //SetPlayerInterior( ... );
}
pawn Код:
//command
if( !strcmp( cmdtext, "/fly", true ))
{
    SetPlayerPos( playerid, 0.0, 0.0, 0.0 ); //This is where you go when typing the command
    //SetPlayerInterior( ... );
    gFlyTimer = SetTimerEx( "FlyTimer", 1000, false, "i", playerid );
    return true;
}
Reply


Messages In This Thread
[HELP] Set a player in a place for a time - by BlacK_PT - 31.08.2010, 14:00
Re: [HELP] Set a player in a place for a time - by LarzI - 31.08.2010, 14:03
Re: [HELP] Set a player in a place for a time - by BlacK_PT - 31.08.2010, 14:08
Re: [HELP] Set a player in a place for a time - by LarzI - 31.08.2010, 14:11
Re: [HELP] Set a player in a place for a time - by BlacK_PT - 31.08.2010, 14:16
Re: [HELP] Set a player in a place for a time - by Claude - 31.08.2010, 14:19
Re: [HELP] Set a player in a place for a time - by LarzI - 31.08.2010, 14:20
Re: [HELP] Set a player in a place for a time - by BlacK_PT - 31.08.2010, 14:23
Re: [HELP] Set a player in a place for a time - by LarzI - 31.08.2010, 14:25
Re: [HELP] Set a player in a place for a time - by BlacK_PT - 31.08.2010, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)