07.01.2012, 18:08
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;
}