Checking if player is armed
#10

I just created a weapon system for testing this weapon detector that would give me a weapon with 1 bullet. So by removing the weapon, I actually just shoot out the 1 bullet, which makes the weapon dissapear.

Код:
CMD:weapon(playerid, params[])
{
     if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Error. Usage: /weapon [weaponid]");
     if(strval(params) > 43 || strval(params) < 1) return SendClientMessage(playerid, COLOR_RED, "Error. Models are between 1 and 43.");
     GivePlayerWeapon(playerid,(strval(params)),1);
     return 1;
}
Reply


Messages In This Thread
Checking if player is armed - by Sam5513 - 24.08.2012, 19:56
Re: Checking if player is armed - by Memoryz - 24.08.2012, 20:03
Re: Checking if player is armed - by Roko_foko - 24.08.2012, 20:05
Re: Checking if player is armed - by Sam5513 - 24.08.2012, 20:30
Re: Checking if player is armed - by Sam5513 - 24.08.2012, 20:52
Re: Checking if player is armed - by clarencecuzz - 24.08.2012, 21:29
Re: Checking if player is armed - by Sam5513 - 24.08.2012, 21:51
Re: Checking if player is armed - by Sam5513 - 25.08.2012, 08:24
Re: Checking if player is armed - by Roko_foko - 25.08.2012, 10:44
Re: Checking if player is armed - by Sam5513 - 25.08.2012, 10:48

Forum Jump:


Users browsing this thread: 2 Guest(s)