09.08.2011, 11:18
Hello i've made a teleport script, but i need to know how to do this: When a player clicks somewere to teleport a 10 second countdown comes on his screen, and once it hits 0 he teleports to his location, and it takes the money off him.
Heres what the script is like now
How would i add a countdown timer to that? Thanks!
Heres what the script is like now
pawn Код:
case 6:
{
if(GetPlayerMoney(playerid) > 15000)
{
GivePlayerMoney(playerid,-15000);
SetPlayerPos(playerid, 1716.7913,1604.7281,10.0156);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, true);
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "Player %s has taken a taxi to (LV)AirPort.", szPlayerName);
SendClientMessageToAll(COLOR_YELLOW, szMessage);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"You dont have $15000.");
}