[Ajuda] Como por so pra adm abrir o portao
#12

pawn Code:
if(strcmp(cmd,"/skin", 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, skin;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /skin [id] [skin]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /skin [id] [skin]");
return 1;
}
skin = strval(tmp);
if(IsPlayerConnected(plid)){
if(skin >= 0 && skin < 300){
SetPlayerSkin(plid,skin);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "(INFO) O Administrrador %s (%d) alterou sua skin para: %d", aname,playerid,skin);
SendClientMessage(plid,tcadm, string);
SendClientMessage(playerid, Verde, "(INFO) Comando efetuado com sucesso!");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(INFO) ID Invalido.");
return 1;
}
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) Jogador nгo conectado.");
return 1;
}
}
}
Reply


Messages In This Thread
Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 19:49
Re: Como por so pra adm abrir o portao - by AlucardSnow - 23.04.2013, 19:53
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 19:54
Re: Como por so pra adm abrir o portao - by bruxo00 - 23.04.2013, 19:56
Re: Como por so pra adm abrir o portao - by AlucardSnow - 23.04.2013, 19:56
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 19:59
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:01
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:02
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:05
Re: Como por so pra adm abrir o portao - by feliphemort - 23.04.2013, 20:10
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:11
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:12
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:14
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:15
Re: Como por so pra adm abrir o portao - by AlucardSnow - 23.04.2013, 20:15
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:17
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:17
Re: Como por so pra adm abrir o portao - by AlucardSnow - 23.04.2013, 20:18
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:19
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:21
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:22
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:24
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:29
Re: Como por so pra adm abrir o portao - by PT - 23.04.2013, 20:32
Re: Como por so pra adm abrir o portao - by Tenhos - 23.04.2013, 20:33
Re: Como por so pra adm abrir o portao - by MarcosRodrigo - 01.05.2013, 15:48

Forum Jump:


Users browsing this thread: 2 Guest(s)