21.09.2011, 00:29
when i go back to off duty. i want wat skin i used before and weps
Code:
dcmd_onduty(playerid,params[]) { #pragma unused params if (AccInfo[playerid][Level] >= 1) { if(AccInfo[playerid][OnDuty] == 0) { AccInfo[playerid][OnDuty] = 1; SetPlayerHealth(playerid,100000); SetPlayerSkin(playerid,294); GivePlayerWeapon(playerid,16,50000); GivePlayerWeapon(playerid,38,50000); return SendClientMessage(playerid,green,"You are now in Duty Mode"); } else { AccInfo[playerid][OnDuty] = 0; SetPlayerHealth(playerid,100); return SendClientMessage(playerid,orange,"You are now Off Duty"); } } return ErrorMessages(playerid, 5); }