Reset Skin
#1

is there a way to reset a players skin?? i need it for this admin cmd

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");
}
i want skin to reset back to the regular skin that is chosen OnPlayerClassSelection
Reply


Messages In This Thread
Reset Skin - by willsuckformoney - 31.07.2010, 11:52
Re: Reset Skin - by V1ceC1ty - 31.07.2010, 12:04
Re: Reset Skin - by willsuckformoney - 31.07.2010, 12:08
Re: Reset Skin - by V1ceC1ty - 31.07.2010, 12:17
Re: Reset Skin - by willsuckformoney - 31.07.2010, 12:22
Re: Reset Skin - by V1ceC1ty - 31.07.2010, 12:24
Re: Reset Skin - by willsuckformoney - 31.07.2010, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)