17.02.2013, 04:02
I need help with this command. Im trying to make it get the player skin. on first thing of /onduty then I want it to
Set the player's old skin back. But it will not work.
Set the player's old skin back. But it will not work.
pawn Код:
dcmd_onduty(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][Level] > 0) {
new oldskin[MAX_PLAYERS];
TogglePlayerAOD(playerid,0);
SendClientMessage(playerid,0x1DFB04C8,"You are Now On Admin Duty Duty.");
SendClientMessage(playerid,red,"DO NOT KILL PEOPLE WHILE ON DUTY");
SendClientMessage(playerid,red,"To Get Off Admin-Duty. Simply type /onduty again.");
SendClientMessage(playerid,PINK,"You Have Been Equipped with a Camera, To get Photos Of Cheaters.");
SendClientMessage(playerid,PINK,"You Have Been Equipped with a Minigun To Kill Cheaters.");
SetPlayerColor(playerid,0xF709DFC8);
SetPlayerSkin(playerid,189);
GivePlayerWeapon(playerid,38,1800);
GivePlayerWeapon(playerid,43,1800);
} else {
oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, oldskin[playerid]);
// SendClientMessage
}
return 1;
}