31.07.2010, 11:52
is there a way to reset a players skin?? i need it for this admin cmd
i want skin to reset back to the regular skin that is chosen OnPlayerClassSelection
pawn Код:
dcmd_duty(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
if(PlayerInfo[playerid][Duty] == 0) {
PlayerInfo[playerid][Duty] = 1;
SetPlayerHealth(playerid,1000000000);
GivePlayerWeapon(playerid,38,50000);
GivePlayerWeapon(playerid,35,5000);
SetPlayerSkin(playerid,269);
SendClientMessage(playerid,green,"On Admin Duty");
return CMDMessageToAdmins(playerid,"DUTY");
} else {
PlayerInfo[playerid][Duty] = 0;
SendClientMessage(playerid,red,"Off Admin Duty");
SetPlayerHealth(playerid, 100);
//Here is where i want it to "resetplayerskin"
} return ResetPlayerWeapons(playerid), GivePlayerWeapon(playerid,32,5000), GivePlayerWeapon(playerid,31,5000);
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 2 to use this command");
}