A /Kill FS or Command for Server.
#1

Okay... Newbie here, I know just a little but and I know a simple /kill is Easy. However, What I want is to Detect wether or not that Player has Wanted Levels and/or if that player is in Jail but I can't figure out those two parts =_=

So far I only have this in LAdmin which i Modified a little.

pawn Код:
dcmd_kill(playerid,params[]) {
    #pragma unused params
    if(GetPlayerWantedLevel > 1)
    return SendClientMessage(playerid, COLOR_ERROR, "ERROR: You cannot do that while Wanted!");
    new string[100];
    GetPlayerName(playerid, string, 24);
    format(string, 100, "%s(%d) Has commited suicide using /kill", string,playerid);
    SendClientMessageToAll(0xEE82EEAA, string);
    return SetPlayerHealth(playerid,0.0);
}
Yes, It's messed up and doesn't work. But I'm hoping by time the Jail one is found/Fixed i can get it to work.

Thanks if you can help me on this.

P.S IsPlayerJailed doesn't work. and Yes, I've searched the Forums and Even searched the Filterscripts.
Reply


Messages In This Thread
A /Kill FS or Command for Server. - by Tommy_Connin - 08.09.2010, 09:47
Re: A /Kill FS or Command for Server. - by Mean - 08.09.2010, 16:40
Re: A /Kill FS or Command for Server. - by Mike_Peterson - 08.09.2010, 17:34
Re: A /Kill FS or Command for Server. - by Tommy_Connin - 08.09.2010, 18:21
Re: A /Kill FS or Command for Server. - by Tommy_Connin - 09.09.2010, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)