Guest User

Untitled

a guest
Dec 11th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. new PlayerB;
  4. new string[128];
  5. new cmd[128];
  6. new tmp[128];
  7. if(strcmp(cmd, "/convidar", true) == 0)
  8. {
  9.  
  10. if(!strlen(tmp)) return SendClientMessage(playerB, BRANCO2, "Uso correto: /convidar [id]");
  11. PlayerB = strval(tmp);
  12. if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, BRANCO2, "Este jogador não está conectado");
  13. if(BrunoInfo[playerid][PM] >= 6)
  14. {
  15. BrunoInfo[playerid][PM] = 1;
  16. SendClientMessage(playerid, BRANCO2, "Você entrou para a Polícia Militar");
  17. SetPlayerColor(playerid, COR_PM);
  18. return 1;
  19. }
  20. return 1;
  21. }
Add Comment
Please, Sign In to add comment