15.02.2017, 18:19
Ola,
estou tentando criar o comando /su [ID] [CRIME] , de forma que o player digite o comando utilizando "id" em numeral, e "crime" por extenso, porйm nгo estou conseguindo fazer o comando reconhecer o "crime" digitado e nгo faзo ideia mais de como tentar.. da ultima vez que tentei ficou assim :
vlw pela atenзao.
estou tentando criar o comando /su [ID] [CRIME] , de forma que o player digite o comando utilizando "id" em numeral, e "crime" por extenso, porйm nгo estou conseguindo fazer o comando reconhecer o "crime" digitado e nгo faзo ideia mais de como tentar.. da ultima vez que tentei ficou assim :
pawn Код:
CMD:su(playerid, params[])
{
new id, dop, idxx[MAX_PLAYER_NAME], idsu[MAX_PLAYER_NAME], texto[100];
GetPlayerName(playerid, idxx, MAX_PLAYER_NAME);
GetPlayerName(id, idsu, MAX_PLAYER_NAME);
if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"su",id, dop)) return SendClientMessage(playerid, Vermelho, "Use: /su id crime");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Vermelho, "Jogador off-line!");
if(!strcmp(params, "dop", false)) return SendClientMessage(playerid, Vermelho, "Nao deu!");
format(texto, sizeof(texto), "%s acusou vocк de desobediencia!", idxx);
SendClientMessage(id, -1, texto);
format(texto, sizeof(texto), "Vocк acusou %s de desobediencia", idsu);
SendClientMessage(playerid, -1, texto);
pDados[id][Procurado] +=1;
SetPlayerWantedLevel(id, 1);
}
else { SendClientMessage(playerid, Vermelho, "Vocк nгo й policial!"); }
return 1;
}