Please Read !! /handgun
#8

Sorry for a double post if i did Double post now but heres the code

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(givegun, 7, cmdtext);
    return 0;
}

dcmd_givegun(playerid, params[])
{
    //Maybe an if statement here.. I dont have the function although, you might add
    //the Distance between player...
    new pID1,
        Ammo = GetPlayerAmmo(playerid),
        Weapon = GetPlayerWeapon(playerid);

    if (sscanf(params, "u", pID1)) SendClientMessage(playerid, 0xFF0000AA, "/givegun PLAYERID");
    GivePlayerWeapon(pID1, Weapon, Ammo);
    ResetPlayerWeapons(playerid);
}
Note I still didnt test this...
Reply


Messages In This Thread
Please Read !! /handgun - by salut693123 - 10.10.2010, 20:13
Re: Please Read !! /handgun - by gamer931215 - 10.10.2010, 20:15
Re: Please Read !! /handgun - by salut693123 - 10.10.2010, 20:18
Re: Please Read !! /handgun - by gamer931215 - 10.10.2010, 20:20
Re: Please Read !! /handgun - by salut693123 - 10.10.2010, 20:26
Re: Please Read !! /handgun - by DarrenReeder - 10.10.2010, 20:26
Re: Please Read !! /handgun - by Lorenc_ - 10.10.2010, 20:53
Re: Please Read !! /handgun - by Lorenc_ - 10.10.2010, 21:05
Re: Please Read !! /handgun - by salut693123 - 11.10.2010, 13:13
Re: Please Read !! /handgun - by [WSF]ThA_Devil - 11.10.2010, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)