Advertisement
whiplk

[PEDIDO] - Pré-Login

Jul 2nd, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1. /*
  2. Pedido by: Lucas Vinicius, fórum sa-mp.
  3. Coded by: Willian_Luigi.
  4.  
  5. --------------
  6.  
  7. função: criar uma contagem rápida para fazer o login.
  8. */
  9. new iCount = 5;
  10. new iTimer = (0);
  11.  
  12. forward assim_caralho(sId);
  13. public assim_caralho(sId)
  14. {
  15.     new sStr[20] = "Spawn em";
  16.     format(sStr, 20, "%s %d",sStr, iCount);
  17.     SendClientMessage(sId, -1, sStr);
  18.     iCount --;
  19.     if (iCount < 1)
  20.     {
  21.         KillTimer(iTimer);
  22.         SpawnPlayer(sId);
  23.         return 1;
  24.     }
  25.     return 0;
  26. }
  27.  
  28. public OnPlayerConnect(playerid)
  29. {
  30.     iTimer = SetTimerEx("assim_caralho", 1000, 1, "i", playerid);
  31.     return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement