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] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [Tempo] [motivo]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
format(string, sizeof(string), "{00FF00}| INFO | O administrador %s puniu o jogador %s TEMPO : %d(Motivo: %s)", aname,pname,result,aviso[plid]);
SendClientMessageToAll(tcadm, string);
}
}else{
format(string, sizeof(string), " (ERRO) ID %d invбlido!", plid);
SendClientMessage(playerid, Vermelho, string);
}
}
return 1;
}
new Year,Month,Day,Hour,Min,Sec,pName[MAX_PLAYER_NAME],string[256];
getdate(Year,Month,Day);
gettime(Hour,Min,Sec);
format(string,256,"%s[ID:%d] Foi Kikado - %d/%d/%d at %d:%d em %d segundos",pName,i,Day,Month,Year,Hour,Min,Sec);
new Hour,Min,Sec; gettime(Hour,Min,Sec); format(string,256,"Lalala kikado tal horas: %s tal minuto: %s tal segundo %s", Hour,Min,Sec);
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] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [Tempo] [motivo]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new Hour,Min,Sec;
gettime(Hour,Min,Sec);
format(string,256,"Lalala kikado tal horas: %s tal minuto: %s tal segundo %s", Hour,Min,Sec);
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
format(string, sizeof(string), "{00FF00}| INFO | O administrador %s puniu o jogador %s TEMPO : %d(Motivo: %s)", aname,pname,result,aviso[plid]);
SendClientMessageToAll(tcadm, string);
}
}else{
format(string, sizeof(string), " (ERRO) ID %d invбlido!", plid);
SendClientMessage(playerid, Vermelho, string);
}
}
return 1;
}
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] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [Tempo] [motivo]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new Hour,Min,Sec;
gettime(Hour,Min,Sec);
format(string,256,"Lalala kikado tal horas: %s tal minuto: %s tal segundo %s", Hour,Min,Sec);
SendClientMessageToAll(playerid, Vermelho, string);//AXO QUE Й ISSO '-'
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
format(string, sizeof(string), "{00FF00}| INFO | O administrador %s puniu o jogador %s TEMPO : %d(Motivo: %s)", aname,pname,result,aviso[plid]);
SendClientMessageToAll(tcadm, string);
}
}else{
format(string, sizeof(string), " (ERRO) ID %d invбlido!", plid);
SendClientMessage(playerid, Vermelho, string);
}
}
return 1;
}
if(strcmp(cmd, "/punirr", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [Tempo] [motivo]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new Hour,Min,Sec;
gettime(Hour,Min,Sec);
SetPlayerPos ( playerid, 263.8820,77.4002,1001.0391 ) ;
SetPlayerInterior ( playerid, 6 ) ;
format(string,256,"Lalala kikado tal horas: %s tal minuto: %s tal segundo %s", Hour,Min,Sec);
SendClientMessageToAll(tcadm, string);//AXO QUE Й ISSO '-'
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
format(string, sizeof(string), "{00FF00}| INFO | O administrador %s puniu o jogador %s TEMPO : %d(Motivo: %s)", aname,pname,result,aviso[plid]);
}
}else{
format(string, sizeof(string), " (ERRO) ID %d invбlido!", plid);
SendClientMessage(playerid, Vermelho, string);
}
}
return 1;
}
ta aparecendo a mensagem mais nгo estб sendo preso por tempo so vai para o interior
pawn Код:
|