Drop Gun isnґt working ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Drop Gun isnґt working ? (
/showthread.php?tid=310727)
Good Scripter ? Look here ! -
Scriptbeginner - 13.01.2012
Hey,
I have a problem with the drop gun filterscript..
Thread: https://sampforum.blast.hk/showthread.php?tid=217076
the /pickupgun command isnґt working..the weapon not coming in my hand..
I need help : )
AW: Good Scripter ? Look here ! -
Scriptbeginner - 13.01.2012
I need help plsssssss...itґs very important :/
Command:
Код:
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));
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;
GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
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;
}
Re: Drop Gun isnґt working ? -
Kaperstone - 13.01.2012
did you changed something in the script?
AW: Drop Gun isnґt working ? -
Scriptbeginner - 13.01.2012
no.. /dropgun is working..but /pickupgun isnґt working :/
AW: Drop Gun isnґt working ? -
Scriptbeginner - 13.01.2012
help plssss..
AW: Drop Gun isnґt working ? -
Scriptbeginner - 13.01.2012
/push :/
Re: Drop Gun isnґt working ? -
rati555 - 13.01.2012
do you use any anticheat?
Re: Drop Gun isnґt working ? -
Scenario - 13.01.2012
READ THE FORUM RULES FOR CRYING OUT LOUD!!!
https://sampforum.blast.hk/showthread.php?tid=64144
Re: AW: Good Scripter ? Look here ! -
Da' J' - 03.02.2012
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!
![Cheesy](images/smilies/biggrin.png)
Hit da' rep button :3
Re: AW: Good Scripter ? Look here ! -
milanosie - 03.02.2012
Quote:
Originally Posted by Da' J'
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! ![Cheesy](images/smilies/biggrin.png) Hit da' rep button :3
|
Meeeep. don't ask for rep