Removeing weapons
#8

Quote:
Originally Posted by [LSR
State_Trooper ]
Код:
if (strcmp("/quitduty", cmdtext, true, 10) == 0) 
 {
   if((police) == 1) 
   ResetPlayerWeapons(playerid);
   {
   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;
   }
Try that!!
tryed that it still didnt work i still have all the weapons take a look at the duty and off duty commands
[quote]
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, 24, 70);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 41, 700);
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;
}
[/quote}
That is my duty command and my off duty command is in the first post
Reply


Messages In This Thread
Removeing weapons - by abineri - 19.03.2010, 22:04
Re: Removeing weapons - by Goobiiify - 19.03.2010, 22:07
Re: Removeing weapons - by abineri - 19.03.2010, 22:07
Re: Removeing weapons - by abineri - 19.03.2010, 22:21
Re: Removeing weapons - by [LSR]State_Trooper - 19.03.2010, 23:14
Re: Removeing weapons - by abineri - 19.03.2010, 23:37
Re: Removeing weapons - by [LSR]State_Trooper - 20.03.2010, 00:20
Re: Removeing weapons - by abineri - 20.03.2010, 00:44
Re: Removeing weapons - by abineri - 20.03.2010, 11:08
Re: Removeing weapons - by XGh0stz - 20.03.2010, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)