CMD:darorg(playerid, params[])
{
if(7 <= Profissao[playerid] <= 8)
{
new 1 = Profissao[playerid] = Groove;
new 2 = Profissao[playerid] = PCC;
new 3 = Profissao[playerid] = ComandoVermelho;
new 4 = Profissao[playerid] = Policial;
if(sscanf(params, "ud", playerid, 1, 2, 3, 4)) return SendClientMessage(playerid, -1, "[PMESP] Use: /darorg [ID] [ID ORG]");
}
else SendClientMessage(playerid, 0xFF0000AA, "[PMESP]{FFFFFF} Voce Nao E Um Policial Militar!");
return 1;
}
new 1 = Profissao[playerid] = Groove;
new 2 = Profissao[playerid] = PCC;
new 3 = Profissao[playerid] = ComandoVermelho;
new 4 = Profissao[playerid] = Policial;
CMD:darorg(playerid, params[])
{
new jogador, org;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й admin RCON.");
if(sscanf(params, "ud", jogador, org)) return SendClientMessage(playerid, -1, "Use: /darorg [ID] [ID ORG]");
switch(org)
{
case 1: { Profissao[jogador] = Groove;}
case 2: { Profissao[jogador] = PCC; }
case 3: { Profissao[jogador] = ComandoVermelho; }
case 4: { Profissao[jogador] = Policial; }
}
return 1;
}
Use como base:
PHP Code:
Vocк estб fazendo a parada na doida, usando os parвmetros sem conhecer absolutamente nada. Sem ler, vocк nunca vai aprender. Leia o bбsico. Nгo dк o passo maior que as pernas. |
format(str, sizeof(str), "[ADMCMD]{FFFFFF} O Jogador {E32636}%s{FFFFFF} Foi Colocado Na %s!", name, org);
CMD:darorg(playerid, params[])
{
if(7 <= Profissao[playerid] <= 8)
{
new jogador, org;
if(sscanf(params, "ud", jogador, org)) return SendClientMessage(playerid, -1, "[ADMCMD] Use: /darorg [ID] [ID ORG]");
switch(org)
{
case 1: { Profissao[jogador] = Groove;}
case 2: { Profissao[jogador] = PCC; }
case 3: { Profissao[jogador] = ComandoVermelho; }
case 4: { Profissao[jogador] = Policial; }
}
new str[180], name[MAX_PLAYER_NAME];
GetPlayerName(jogador, name, sizeof(name));
format(str, sizeof(str), "[ADMCMD]{FFFFFF} O Jogador {E32636}%s{FFFFFF} Foi Colocado Na %s!", name, org);
SendClientMessageToAll(0xFF0000AA, str);
}
else SendClientMessage(playerid, 0xFF0000AA, "[ADMCMD] Voce Nao E Um Administrador!");
return 1;
}
new orgname[30];
case 1: { Profissao[jogador] = Groove, orgname = "Groove Street";}
PHP Code:
|