[searching]Hello im trying to get an deadmatch kicker.
#1

Hello im searching for a anti deadmatch thing if the kill some one some where that the get kicked then and i already searched for it on the forum but couldent find it if you know one plz give me the link are help me how i make it myself.


Gr marnick
Reply
#2

Its easy just put this under OnPlayerDeath callback :
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
 Kick(killerid);
 return 1;
}
That will basically kicked all those who DM.
Reply
#3

k thnx so even if they are flying in a hydra shoots some one they get kicked and ehm if ya fall death nothing happens?


gr marnick
Reply
#4

Quote:
Originally Posted by marnickx
k thnx so even if they are flying in a hydra shoots some one they get kicked and ehm if ya fall death nothing happens?


gr marnick
Yes, only those who kills players will get kicked.
Reply
#5

ehm this is what i get i just putted in my gm what do i need to add more hehe?

Код:
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(808) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(808) : error 004: function "OnPlayerDeath" is not implemented
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(809) : warning 217: loose indentation
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(810) : error 017: undefined symbol "killerid"
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(815) : warning 225: unreachable code
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(815) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#6

try this
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(playerid != killerid){
new pname[MAX_PLAYER_NAME], string[256];
GetPlayerName(killerid, pname, sizeof(pname));
format(string, sizeof(string), "%s was kicked for deathmatching!", pname);
SendClientMessageToAll(YOURCOLOR, string);
Kick(killerid);
}
return 1;
}
Edit: haha just noticed I was to slow...well check if you got "public OnPlayerDeath" twice in your script now
Reply
#7

hehe now i have 8 errors xd
Код:
	public OnPlayerDeath(playerid, killerid, reason)
{
 	Kick(killerid);
	return 1;
}
	public OnPlayerDeath(playerid, killerid, reason)
	{
	if(playerid != killerid){
	new pname[MAX_PLAYER_NAME], string[256];
	GetPlayerName(killerid, pname, sizeof(pname));
	format(string, sizeof(string), "%s was kicked for deathmatching!", pname);
	SendClientMessageToAll(COLOR_RED, string);
	Kick(killerid);
}
ehm maybe u can put it in fs?
the errors
Код:
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(821) : error 004: function "OnPlayerDeath" is not implemented
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(822) : warning 217: loose indentation
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(823) : error 017: undefined symbol "killerid"
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(826) : warning 225: unreachable code
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(826) : warning 217: loose indentation
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(826) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(826) : error 004: function "OnPlayerDeath" is not implemented
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(828) : error 017: undefined symbol "killerid"
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(830) : error 017: undefined symbol "killerid"
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(833) : error 017: undefined symbol "killerid"
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(835) : warning 217: loose indentation
C:\Documents and Settings\Marnick\Bureaublad\samp03asvr_R7_win32\gamemodes\lol.pwn(838) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply
#8

Dude

I'm in a nice mood today so i've made you a Filterscript.

Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
  print(" DeathMatch Kicker ");
  print(" Made by Xtreme   ");
}

#endif


public OnPlayerDeath(playerid,killerid,reason)
{
  Kick(killerid);
  return 1;
}
EDIT: Just save/complie p
the filterscript, Then put it in your Filterscripts folder, Name in cfg, Join the server..

And tada!

ANyone who kills will be kicked.
Reply
#9

that is all i need? hehe thnx man
and owya if i player joins and then i want some text to show i just need to use this?
Код:
public OnPlayerConnect(playerid)
{
  SendClientMessage(playerid, COLOR_YELLOW, "And here the info?");	
  return 1;
}
Reply
#10

Quote:
Originally Posted by marnickx
that is all i need? hehe thnx man
I updated my post look up, To see what to do.


And it should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)