Need a little help
#1

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
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.");
                }
How would i add a countdown timer to that? Thanks!
Reply
#2

Try to use y_countdown
Reply
#3

That don't work.
Reply
#4

Anyone know? I'm sure its simple enough.. :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)