Teleport time
#1

Hellou!
Someone can help me with teleport thing? Like - when i type /sf it teleports me to San fierro but only when i type /sf i have to wait 5 sec and only then i get to sf.
Код:
if(strcmp(cmdtext, "/sf", true) == 0)
     	{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;}
Thanks!. I hope you understand what i want. not my day..
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)