29.05.2013, 03:11
ta aparecendo a mensagem mais nгo estб sendo preso por tempo so vai para o interior
pawn Код:
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;
}