What the ... weapon?!
#1

Hello guys. Dunno where I can post this, I think thats is the best place to give info for other ppl.
Sorry for my poor english and etc, but I found 1 bug, dunno if some1 knew that or not - me didn't.

Here it is:
If u create pickup with this:
PHP Code:
mypickup CreatePickup(353 
where 353 - mp5 object and set TYPE OF PICKUP to 2:
PHP Code:
mypickup CreatePickup(353,2,... 
This will always give to player 60 bullets of mp5 if u pick up this. and 'return true' will not save u against that
PHP Code:
if(pickupid == mypickup) return true
Thats doesnt work. If u dont want to give mp5 when player pick up pickup with 353object u need to put type on '23'.

Sorry if that is already known, but may be some1 will learn after me.

-STILL SORRY FOR POOR ENGLISH AND BAD EXPLANATION.
Reply
#2

mypickup = CreatePickup(353,1,...

*I changed pickup type to 1

Then put this at OnPlayerPickUpPickup:
Code:
if(pickupid == mypickup)
{
    if(is_player_eligible) GivePlayerWeapon();
    else SendClientMessage();
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)