[Ajuda] Comando: /Setskin
#8

pawn Код:
CMD: setskin(playerid, params[])
{
   new skinid;
   new ID;
   new string[128];
   new pname[MAX_PLAYER_NAME];
   GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
   if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "ERRO: Vocк nгo й um adiministrador para usar esse comando.");
   if (sscanf(params, "ui", ID, skinid)) return SendClientMessage(playerid, -1, "[.....]: Uso do Comando Correto: /setskin [ID] [Skin]");
   if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "ERRO: ID invalido.");
   if (0 < (skinid) > 299) return SendClientMessage(playerid, -1, "SO EXISTE SKIN DE 0 A 299");
   format(string, sizeof(string), "[NomeSV]: O Adiministrador %s alterou a skin de %s para o ID: [%d].", pname);
   SendClientMessageToAll(0xFF00FFFF, string);
   SetPlayerSkin(playerid, skinid);
   PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
   return 1;
}
Pronto '-' ;p
Reply


Messages In This Thread
Comando: /Setskin - by Gabriel Santana - 22.08.2012, 22:26
Re: Comando: /Setskin - by Tony_Rodrigues - 22.08.2012, 22:29
Re: Comando: /Setskin - by Gabriel Santana - 22.08.2012, 22:30
Re: Comando: /Setskin - by Gabriel Santana - 22.08.2012, 22:34
Re: Comando: /Setskin - by @Riichard - 22.08.2012, 22:36
Re: Comando: /Setskin - by Gabriel Santana - 22.08.2012, 22:38
Re: Comando: /Setskin - by s4kuL - 22.08.2012, 23:45
Re: Comando: /Setskin - by Diogo123 - 22.08.2012, 23:50
Re: Comando: /Setskin - by Tony_Rodrigues - 23.08.2012, 02:04
Re: Comando: /Setskin - by Maklister - 23.08.2012, 17:18

Forum Jump:


Users browsing this thread: 2 Guest(s)