[Ajuda] Comando bangu
#1

o meu comando nгo estб funcionando so aparece
pawn Код:
Comando efetuado com sucesso
mais o jogador nгo vai preso n aparece isso O administrador Cromado prendeu o jogador fulando motivo teste tempo 10
isso nгo aparece so aparece comando efetuado o jogador n vai preso n acontece nada alguem ai da uma ajuda comando
eu so queria que aparecise que o jogador foi preso , e ele vai preso por o tempo que eu quiser


pawn Код:
if(strcmp(cmd,"/PuniR", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new msg[256];
new plid,tempo;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
tempo = strval(tmp);
msg = strrest(cmdtext, idx);
if(!strlen(msg)){
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
if(tempo > 100 || tempo < 1){
SendClientMessage(playerid, Vermelho,"De 1 a 10 niveis");
return 1;
}
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
}
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
format(string, sizeof(string),"O Corregedor %s(ID: %d) puniu %s(ID:%d) em %d niveis [Motivo: %s]", aname, playerid,pname,plid,tempo, msg);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
SendClientMessage(playerid, Verde, "Comando efetuado com sucesso!");
} else SendClientMessage(playerid, Vermelho, "Vocк nгo pode punir um membro PC, entre em contato com os donos do clan!");
return 1;
}
else{
SendClientMessage(playerid, COLOR_RED,"{F81414}(ERRO){FFFFFF} ID invбlido");
return 1;
}
}
}
Reply
#2

Tб sem as funзхes, SetPlayerPos, SetPlayerInterior...
Reply
#3

LoL eu nem percebi mais ja arrumei jб o SetPlayerPos eo SetPlayerInterior mais nгo estб prendendo com tempo e nem aparece o motivo ainda

pawn Код:
if(strcmp(cmd,"/Bangu", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new msg[256];
new plid,tempo;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SetPlayerPos ( playerid, 263.8820,77.4002,1001.0391 ) ;
SetPlayerInterior ( playerid, 6 ) ;
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
tempo = strval(tmp);
msg = strrest(cmdtext, idx);
if(!strlen(msg)){
SendClientMessage(playerid, COLOR_GREEN,"{F81414}(ERRO){FFFFFF} Use /punir [id] [tempo] [motivo]");
return 1;
}
if(tempo > 100 || tempo < 1){
SendClientMessage(playerid, Vermelho,"De 1 a 10 niveis");
return 1;
}
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
}
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
format(string, sizeof(string),"O Corregedor %s(ID: %d) puniu %s(ID:%d) em %d niveis [Motivo: %s]", aname, playerid,pname,plid,tempo, msg);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
SendClientMessage(playerid, Verde, "Comando efetuado com sucesso!");
} else SendClientMessage(playerid, Vermelho, "Vocк nгo pode punir um membro PC, entre em contato com os donos do clan!");
return 1;
}
else{
SendClientMessage(playerid, COLOR_RED,"{F81414}(ERRO){FFFFFF} ID invбlido");
return 1;
}
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)