Simple killerid problem
#4

pawn Код:
#include <a_samp>
#include <core>
#include <float>

#pragma tabsize 0
new nuker[MAX_PLAYERS];
main()
{
    print("\n----------------------------------");
    print("  Bare Script\n");
    print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new idx;
    new cmd[256];
   
    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/kill", true) == 0)
        {
        nuker[playerid] = 1;
        SetPlayerHealth(playerid,0.0);
        return 1;
        }

    return 0;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,0);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(nuker[killerid] == 1)
        {
        SendDeathMessage(killerid,playerid, reason);
        }
    return 1;
}
// other stuff
this doesnt work, it doesnt appear on kill list.. and i just tried this GM without other FS's..
Reply


Messages In This Thread
Simple killerid problem - by nejc001 - 28.03.2011, 18:06
Re: Simple killerid problem - by Jochemd - 28.03.2011, 18:13
Re: Simple killerid problem - by GNGification - 28.03.2011, 18:14
Re: Simple killerid problem - by nejc001 - 29.03.2011, 16:51
Re: Simple killerid problem - by Mr_Scripter - 29.03.2011, 16:55
Re: Simple killerid problem - by nejc001 - 29.03.2011, 17:11
Re: Simple killerid problem - by nejc001 - 02.04.2011, 08:22
Re: Simple killerid problem - by nejc001 - 09.04.2011, 06:40
Re: Simple killerid problem - by nejc001 - 16.04.2011, 13:37
Re: Simple killerid problem - by nejc001 - 23.04.2011, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)