Drop Gun isnґt working ?
#9

pawn Код:
command(pickupgun, playerid, params[])
{
    for(new i = 0; i < sizeof(DropInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunVWorld])
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                DestroyDynamicObject(DropObject[i]);
                DropInfo[i][DropGunPosX] = 0.0;
                DropInfo[i][DropGunPosY] = 0.0;
                DropInfo[i][DropGunPosZ] = 0.0;
                DropInfo[i][DropGunAmmount][0] = 0;
                DropInfo[i][DropGunAmmount][1] = 0;
                format(string, sizeof(string), "* %s picks up a weapon from the pavement.", sendername);
                SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION);
                return 1;
            }
        }
    }
    return 1;
}
Finally i help'd! Hit da' rep button :3
Reply


Messages In This Thread
Good Scripter ? Look here ! - by Scriptbeginner - 13.01.2012, 17:25
AW: Good Scripter ? Look here ! - by Scriptbeginner - 13.01.2012, 17:46
Re: Drop Gun isnґt working ? - by Kaperstone - 13.01.2012, 17:56
AW: Drop Gun isnґt working ? - by Scriptbeginner - 13.01.2012, 18:08
AW: Drop Gun isnґt working ? - by Scriptbeginner - 13.01.2012, 18:25
AW: Drop Gun isnґt working ? - by Scriptbeginner - 13.01.2012, 18:30
Re: Drop Gun isnґt working ? - by rati555 - 13.01.2012, 18:51
Re: Drop Gun isnґt working ? - by Scenario - 13.01.2012, 18:57
Re: AW: Good Scripter ? Look here ! - by Da' J' - 03.02.2012, 15:23
Re: AW: Good Scripter ? Look here ! - by milanosie - 03.02.2012, 15:27

Forum Jump:


Users browsing this thread: 2 Guest(s)