19.03.2010, 22:04
I need to remove the wepons the player gets when he uses the /quitduty command or gets jailed however i have tryed ResetPlayerWeapons(playerid); and it dosent work and i saw a function called RemovePlayerWeapon(playerid, weaponid) but i cant get that to work eather
Quote:
if (strcmp("/quitduty", cmdtext, true, 10) == 0) { if((police) == 1) { police = 0; SetJob(0,playerid); SetPlayerSkin( playerid, Skin[ playerid ] ); ResetPlayerWeapons(playerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are off duty"); SetPlayerColor(playerid, COLOR_WHITE); } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "You arent on duty!"); } return 1; } return 0; } |