Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new PlayerB;
- new string[128];
- new cmd[128];
- new tmp[128];
- if(strcmp(cmd, "/convidar", true) == 0)
- {
- if(!strlen(tmp)) return SendClientMessage(playerB, BRANCO2, "Uso correto: /convidar [id]");
- PlayerB = strval(tmp);
- if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, BRANCO2, "Este jogador não está conectado");
- if(BrunoInfo[playerid][PM] >= 6)
- {
- BrunoInfo[playerid][PM] = 1;
- SendClientMessage(playerid, BRANCO2, "Você entrou para a Polícia Militar");
- SetPlayerColor(playerid, COR_PM);
- return 1;
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment