SA-MP Forums Archive
[Easy] Scripting question, please help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Easy] Scripting question, please help. (/showthread.php?tid=252533)



[Easy] Scripting question, please help. - Clueless - 01.05.2011

Hello,

I am new to scripting and I'd like to add a kill-list code to my server but I don't find anything, and when I do find something it doesn't work or its bugged.. could you please give me a simple kill list code?

Thanks in advance, Clueless


Re: [Easy] Scripting question, please help. - MadeMan - 01.05.2011

https://sampwiki.blast.hk/wiki/SendDeathMessage


Re: [Easy] Scripting question, please help. - Clueless - 01.05.2011

Doesnt work .. where do I need to add it? Below this or what? When I search OnPlayerDeath, this happears:

public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];

if(Player[playerid][AdminDuty] != 1)
{


Re: [Easy] Scripting question, please help. - MadeMan - 01.05.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
new string[128];

if(Player[playerid][AdminDuty] != 1)
{



Re: [Easy] Scripting question, please help. - Clueless - 01.05.2011

C:\Documents and Settings\diingO\Ambiente de trabalho\SM-RPG V.1.0 R1\gamemodes\SM-RPG.pwn(9902) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: [Easy] Scripting question, please help. - MadeMan - 01.05.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    new string[128];

    if(Player[playerid][AdminDuty] != 1)
    {



Re: [Easy] Scripting question, please help. - Clueless - 01.05.2011

thanks alot mate