LucasViniciusLV

[CODE]: Função ClearScreen Multi Utilitária (ÚNICA)

Aug 27th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. #include a_samp
  2.  
  3. //Função ClearScreen Multi Utilitária, (ÚNICA).
  4.  
  5. //@Development Willian Luigi & Lucas Vinícius ®
  6. stock /*EVITA WARNS*/ ClearScreen (playerid = -1, lines = -1)
  7. {
  8.     if (playerid >= 0)
  9.     {
  10.         if (lines > 0) for (new i = 0; i < lines; SendClientMessage(playerid, -1, " "), ++i) {}
  11.         else for (new i = 0; i < 100; SendClientMessage(playerid, -1, " "), ++i) {}
  12.     }
  13.     else
  14.     {
  15.         if (lines > 0) for (new i = 0; i < lines; SendClientMessageToAll(-1, " "), ++i) {} 
  16.         else for (new i = 0; i < 100; SendClientMessageToAll(-1, " "), ++i) {}
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment