Teleport time
#2

pawn Код:
if(strcmp(cmdtext, "/sf", true) == 0)
{
    SetTimerEx("SFtele",5000,false,"i",playerid);
    GameTextForPlayer(playerid,"~g~Please wait 5 seconds...",2500,1);
    return 1;
}

forward SFtele(playerid);
public SFtele(playerid)
{
    new cartype = GetPlayerVehicleID(playerid);
    new State=GetPlayerState(playerid);
    SetPlayerInterior(playerid,0);
    if(State!=PLAYER_STATE_DRIVER)
    {
        SetPlayerPos(playerid,-1972.6483,283.9722,35.1719);
    }
    else if(IsPlayerInVehicle(playerid, cartype) == 1)
    {
        SetVehiclePos(cartype,-1972.6483,283.9722,35.1719);
        SetVehicleZAngle(cartype,184.6754);
    }
    else
    {
        SetPlayerPos(playerid,-1972.6483,283.9722,35.1719);
    }
    GameTextForPlayer(playerid,"~g~San Fierro",2500,1);
    return 1;
}
Reply


Messages In This Thread
Teleport time - by bleedis - 07.01.2012, 17:56
Re: Teleport time - by BlackWolf120 - 07.01.2012, 18:08
Re: Teleport time - by Psymetrix - 07.01.2012, 18:13
Re: Teleport time - by bleedis - 07.01.2012, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)