27.09.2011, 21:05
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new PlayerB;
new string[128];
new cmd[128];
new tmp[128];
if(strcmp(cmd, "/convidar", true) == 0)
{
tmp = strtok(cmdtext,idx)
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;
}