[NOT SOLVED, HELP] Need help with an FS. -
Da' J' - 16.09.2011
So i need some help with dropgun FS. Here's the code:
pawn Код:
//=================//
command(pickitem, 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 off the ground.", sendername);
SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION);
ApplyAnimation(playerid,"BOMBER","BOM_PLANT",3.0,0,0,0,0,0,0);
return 1;
}
}
}
return 1;
}
//=================//
Posted the same here as in the FS post, as they won't never help there :/ So the problem is that the weapon ain't coming in my hand after i type /pickitem.
Re: [Help] Need help with an FS. -
wouter0100 - 16.09.2011
Not in your hand, but maybe when you scroll? (mous)
Re: [Help] Need help with an FS. -
Issam - 16.09.2011
Well, il upload the "dropgun"
which has the pickgun feature too,just give me a sec.
By the way, the commands are /dgun and /pgun, you Can ALWAYS Change those.
http://www.megaupload.com/?d=525QJHEF
Alright, listen.
Open the RAR File, open dropgun and take the dropgun.pwn
go to your Server Filterscript folder,and put it there,
Open pawno and load dropgun.pwn
compile it
then go to your server.cfg and add in the line "Filterscripts"
"dropgun",it should appear like this
Код:
Filterscripts dropgun
Run your gamemode,go in game.
get a WEAPON and /dgun,it will show up a /me drops a weapon on the ground.
and to pick use,/pgun,you need to be on the WEAPON MODEL!
I Helped you? give me some reputation
Re: [Help] Need help with an FS. -
Da' J' - 16.09.2011
And i want it just like this: (atleast) OnPlayerDeath, /pickupgun, animation with /pick. Oh, and like a /me command for it when you pick up a gun or /drop it.
Re: [Help] Need help with an FS. -
Issam - 16.09.2011
I Edited my post,and yes it has a AUTO /me
If it works fine, gimme Reputation :P
i Have 0,you are the first one i help :P
Re: [Help] Need help with an FS. -
Da' J' - 16.09.2011
Thanks.. And i ain't THAT noob -.- And how to even give rep? Lol.
Edit: That ain't got the most important, OnPlayerDeath. So no support for that. Sry.
Re: [Help] Need help with an FS. -
Issam - 16.09.2011
You can add it
search for /pgun
add:
ApplyAnimation(playerid, blablablaetc...)
choose the one you want
for Reputation:
You see a STAR near the GREEN Online THING? click on it
and add why you Gave me reputation.
Re: [Help] Need help with an FS. -
Da' J' - 16.09.2011
I know i can put ApplyAnimation. But
OnPlayerDeath!! MOST important!
Re: [Help] Need help with an FS. -
Issam - 16.09.2011
Quote:
Originally Posted by Da' J'
I know i can put ApplyAnimation. But OnPlayerDeath!! MOST important!
|
I Might make it if i have time,i'm busy with my own GM too,you know..
Re: [Help] Need help with an FS. -
Da' J' - 16.09.2011
Ok.. :/ Someone else help me out