LucasViniciusLV

[FilterScript] Sistema Logout (v1.1) @ThunderGamesBR

Jun 23rd, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.04 KB | None | 0 0
  1. #tryinclude <a_samp>
  2. #tryinclude <zcmd>
  3.  
  4. forward LogoutInitiation(playerid);
  5.  
  6. new gCountTime = 6;
  7. new Text:Textdraw0;
  8. new SecondsCount[MAX_PLAYERS] = {0,...};
  9.  
  10. public OnGameModeInit() {
  11.  
  12.     Textdraw0 = TextDrawCreate(298.000000, 312.000000, "  ");
  13.     TextDrawBackgroundColor(Textdraw0, 255);
  14.     TextDrawFont(Textdraw0, 1);
  15.     TextDrawLetterSize(Textdraw0, 0.420000, 1.900000);
  16.     TextDrawColor(Textdraw0, -9371393);
  17.     TextDrawSetOutline(Textdraw0, 0);
  18.     TextDrawSetProportional(Textdraw0, 1);
  19.     TextDrawSetShadow(Textdraw0, 1);
  20.  
  21.     return 1;
  22. }
  23.  
  24. public LogoutInitiation(playerid)
  25. {
  26.     new sCountIndex[256];
  27.     SecondsCount[playerid] = gCountTime;
  28.     format(sCountIndex, sizeof(sCountIndex), "Saindo %i...", gCountTime);
  29.     TextDrawSetString(Textdraw0, sCountIndex);
  30.     gCountTime --;
  31.     return 1;
  32. }
  33.  
  34. CMD:logout(playerid, params[])
  35. {
  36.     CallRemoteFunction("OnPlayerConnect","d", playerid);
  37.     SetTimerEx("LogoutInitiation", 1000, 0, "d",playerid);
  38.     TextDrawShowForPlayer(playerid, Textdraw0);
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment