[Tutorial] How to make a kickgun, for admins only
#3

Quote:

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)

Why under OnPlayerGiveDamage?

Quote:

if(GetPlayerWeapon(playerid) == 33 && kickgun[playerid] == 1) {

What's that? What it should do? Oh wait! I got an error here.

Quote:

SendClientMessage(damagedid,COLOR_RED, "You have been kicked by The Quake Industries Shotgun for AFK.");

DAMN! wtf was that? Can you explain more? Oh i got another error here!

Quote:

if(PlayerInfo[playerid][pAdmin] >= 1337)

Damn, another error and can you tell me how to fix this?

Quote:

if(PlayerInfo[playerid][pKGBullets] != 0)
{
SafeGivePlayerWeapon(playerid, 33, 10000);

What it should do? Btw, I got a LOT of errors here.

Quote:

ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);

ProxDetector? I can't find it on sa-mp wiki. Where did you get it?

Quote:

AttachWeaponCorrectly(playerid, 23);

Hmm can you explain this?
Reply


Messages In This Thread
How to make a kickgun, for admins only - by UnknownGamer - 22.07.2012, 07:07
Re: How to make a kickgun, for admins only - by Kindred - 22.07.2012, 07:29
Re: How to make a kickgun, for admins only - by newbienoob - 22.07.2012, 07:55
Re: How to make a kickgun, for admins only - by Djole1337 - 22.07.2012, 07:57
Re: How to make a kickgun, for admins only - by Rob_Maate - 22.07.2012, 16:21
Re: How to make a kickgun, for admins only - by Pinguinn - 22.07.2012, 16:52
Re: How to make a kickgun, for admins only - by XVlaDX - 06.05.2013, 17:12

Forum Jump:


Users browsing this thread: 4 Guest(s)