24.04.2012, 00:08
Quote:
You use:
[pawn]GetPlayerSkin(playerid);[pawn] For save current skin. Exemple: pawn Код:
pawn Код:
|
One more quick question how comes when i enter a skin id and do /adminduty how comes it dont make me the skin i put in
pawn Код:
enum pData
{
AdminSkin
}
pawn Код:
CMD:setadminskin(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
new string[128], newskin[MAX_PLAYER_NAME];
if(sscanf(params, "s", newskin)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setadminskin <skinid>");
format(PlayerData[playerid][AdminSkin],MAX_PLAYER_NAME,"%d",newskin);
format(string, sizeof(string), "You set your admin skin to %d", newskin);
SendClientMessage(playerid, 0xFFFFFFF, string);
}
return 1;
}
pawn Код:
CMD:adminduty(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
SetPlayerSkin(playerid, PlayerData[playerid][AdminSkin]);
}
}
Thank You
Please Help Me Please