SafeGivePlayerWeapon
#1

Hello, i need a SafeGivePlayerWeapon function. But i dont know how to make it.
I've searched for it, but still nothing.

Could any of you give me a link for it or write it here ?

Thank you !
Reply
#2

What is it supposed to do?
Reply
#3

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
What is it supposed to do?
It is a anti-weapon cheat function

I've havent seen a good one, but im sure SafeGivePlayerWeapon function works perfectly.
Reply
#4

Код:
SafeGivePlayerWeapon(playerid, 29, 99999);

Playerid, weaponid, ammo
Here you go!
Reply
#5

Quote:
Originally Posted by NourdinTRP
Посмотреть сообщение
Код:
SafeGivePlayerWeapon(playerid, 29, 99999);

Playerid, weaponid, ammo
Here you go!
This wont help anything...

I need the full function of it !
Reply
#6

This is nothing, but this is like a simple function.

pawn Код:
stock SafeGivePlayerWeapon(playerid, weaponid, ammo)
    return GivePlayerWeapon(playerid, weaponid, ammo);
Reply
#7

I suppose it's about server-side weapons. ****** it, there's a tutorial about it.
Reply
#8

Put this at the top of your pwn.
Код:
forward SafeGivePlayerWeapon(playerid, weaponid, ammo);
Maybe this works
And that function that pd2 stated.

+rep would be appreciated.
Reply
#9

Quote:
Originally Posted by NourdinTRP
Посмотреть сообщение
Put this at the top of your pwn.
Код:
forward SafeGivePlayerWeapon(playerid, weaponid, ammo);
Maybe this works
And that function that pd2 stated.

+rep would be appreciated.
That won't help whatsoever, you can't forward a function and then use a stock for it. That's the whole point of the stock, so you won't have to create a full callback of it. And don't ask for rep when you don't even know what you're doing :P.
Reply
#10

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
That won't help whatsoever, you can't forward a function and then use a stock for it. That's the whole point of the stock, so you won't have to create a full callback of it. And don't ask for rep when you don't even know what you're doing :P.
Actually you can forward a stock function that uses a tag to get rid of the warning 208: function with tag result used before definition, forcing reparse.

And yes, it won't help in his case.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)