RemovePlayerWeapon
#3

Quote:
Originally Posted by Jeffry
pawn Код:
ResetPlayerWeapons(playerid);
Cheers!
i know but i have wrote in another post that ResetPlayerWeapons(playerid); just simply dosent work it just dosent i have tryed everything and i thought i had solved the problem when i read about this function but i cant get this function to work ether i will post my duty and quit duty script now

pawn Код:
if (strcmp("/duty", cmdtext, true, 10) == 0)
    {
if((wanted) == 1)
      {
      police = 0;
      SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are wanted so you cant be a cop");
      return 1;
    }

if((police) == 0)
      {
        police = 1;
        SetJob(1,playerid);
        GivePlayerWeapon(playerid, 3, 0);
        GivePlayerWeapon(playerid, 24, 500);
        GivePlayerWeapon(playerid, 17, 10);
        SetPlayerColor(playerid,COLOR_LIGHTBLUE);
        SetPlayerSkin(playerid,280,284);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now on duty");
        }
else
        {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are all ready on duty");
        }
return 1;
    }
if (strcmp("/quitduty", cmdtext, true, 10) == 0)
  {

  if((police) == 1)

    {
    police = 0;
    RemovePlayerWeapon(playerid,gunid);
    SetJob(0,playerid);
    SetPlayerSkin( playerid, Skin[ 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;
   }
Reply


Messages In This Thread
RemovePlayerWeapon - by abineri - 21.03.2010, 13:29
Re: RemovePlayerWeapon - by Jeffry - 21.03.2010, 13:36
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:38
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 13:41
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:42
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:49
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 13:59
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 14:03
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 14:07
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)