Kick for minigun etc.
#1

Код:
public OnPlayerUpdate(playerid)
{
	if(GetPlayerWeapon(playerid) == 344 || GetPlayerWeapon(playerid) == 359 || GetPlayerWeapon(playerid) == 360 || GetPlayerWeapon(playerid) == 361 || GetPlayerWeapon(playerid) == 362 ){
		Kick(playerid);
	    SendClientMessage(playerid, COLOR_ORANGE, "* Buvai iрkickintas uю neleistinus ginklus!");
	}
	return 1;
}
What's wrong with this?
Reply
#2

Explain what happens...
Reply
#3

Those weapon id's are incorrect.

Use this for the id: https://sampwiki.blast.hk/wiki/Weapons

Edit: I see you used the Object Model ID instead of the ID. Also it's not wise to put it under OnPlayerUpdate. I would suggest a timer every 2 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)