Need a little help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a little help (
/showthread.php?tid=275346)
Need a little help -
ServerRestart - 09.08.2011
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!
Re: Need a little help -
Speed - 09.08.2011
Try to use y_countdown
Re: Need a little help -
ServerRestart - 09.08.2011
That don't work.
Re: Need a little help -
ServerRestart - 09.08.2011
Anyone know? I'm sure its simple enough.. :/