Advertisement
Guest User

X1TwoPlay

a guest
Dec 12th, 2010
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.28 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define Branco     \
  4.              0xFAFAFAFF
  5. #define Vermelho   \
  6.              0xFF0023FF
  7.  
  8. new
  9.     bool:TaNoX1[MAX_PLAYERS],
  10.     Quantos
  11. ;
  12.  
  13. public
  14.      OnPlayerCommandText(playerid, cmdtext[])
  15. {
  16.     if(!strcmp("/X1", cmdtext, true, 4))
  17.     {
  18.         if(Quantos == 2) return SendClientMessage(playerid, Vermelho," X1 está cheio, tente mais tarde.");
  19.  
  20.         SendClientMessageToAll(Branco,"[INFO] Alguém foi para x1 de duas pessoas, vai duelar também! ( / X1 ) ");
  21.         SetPlayerPos(playerid,1494.0419, -1136.7343, 135.8281);
  22.         Quantos += 1;
  23.         TaNoX1[playerid] = true;
  24.         return true;
  25.     }
  26.     return false;
  27. }
  28.  
  29. public
  30.      OnPlayerDeath(playerid, killerid, reason)
  31. {
  32.     if(TaNoX1[playerid] == true)
  33.     {
  34.        new
  35.               string[50+MAX_PLAYER_NAME],
  36.               Nome[40][MAX_PLAYERS],
  37.               Nomi[40][MAX_PLAYERS]
  38.        ;
  39.  
  40.        TaNoX1[playerid] = false;
  41.        TaNoX1[killerid] = false;
  42.  
  43.        GetPlayerName(killerid, Nomi[killerid], 40);
  44.        GetPlayerName(playerid, Nome[playerid], 40);
  45.  
  46.        format(string, sizeof(string),"[INFO] Mr.%s Ganhou no x1 contra %s.",Nomi[killerid], Nome[killerid]);
  47.        SendClientMessageToAll(Branco, string);
  48.        Quantos = 0;
  49.     }
  50.     return true;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement