02.07.2014, 07:04
(
Последний раз редактировалось Lorruan; 02.07.2014 в 17:33.
)
Removido
Removido
if(strcmp(cmd,"/setskin", true)==0)
{
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5) {
new plid, skin;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, " | ERRO | Digite: /setskin [id] [skin]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, " | ERRO | Digite: /setskin [id] [skin]");
return 1;
}
skin = strval(tmp);
if(IsPlayerConnected(plid)) {
if(skin >= 0 && skin <= 299) {
format(string, sizeof(string), " | INFO | O Administrador %s (%d) setou sua skin para: %d.", PlayerName(playerid), playerid, skin);
SendClientMessage(plid, adm, string);
SetPlayerSkin(plid,skin);
dini_IntSet(file2, "Skin", skin);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, " | ERRO | Jogador nгo conectado.");
return 1;
}
}
}
}