What Do I Have To Do To Set GM To Midnight?
#10

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
Okay,I see you have a cops and robbers server right?
That's pretty simple =P
pawn Код:
enum pInfo
{
    Jailed
};

new PlayerInfo[MAX_PLAYERS][pInfo];
Okay now,under your arrest command after all SetPlayerPos(id,JailPositions..) add this:

pawn Код:
PlayerInfo[id][Jailed] = 1;
And now /kill and /rob

pawn Код:
if(strcmp(cmd, "/kill", true) == 0)
    {
            if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,color,"You cannot kill yourself while you're jailed!");
            else return SetPlayerHealth(playerid,0);
            return 1;
        }
        if(strcmp(cmd, "/rob", true) == 0)
    {
            if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,color,"You cannot rob someone/a store while you're jailed");
            else
            {
               // Rest of your script
            }
            return 1;
        }

ahh i get errors we this go:

enum pInfo
{
Jailed
};
Reply


Messages In This Thread
Help with jail - by [Weponz] - 08.07.2010, 19:57
Re: What Do I Have To Do To Set GM To Midnight? - by [XST]O_x - 08.07.2010, 19:59
Re: What Do I Have To Do To Set GM To Midnight? - by [Weponz] - 08.07.2010, 20:14
Re: What Do I Have To Do To Set GM To Midnight? - by [Weponz] - 08.07.2010, 20:14
Re: What Do I Have To Do To Set GM To Midnight? - by CAR - 08.07.2010, 20:18
Re: What Do I Have To Do To Set GM To Midnight? - by [Weponz] - 08.07.2010, 20:36
Re: What Do I Have To Do To Set GM To Midnight? - by [XST]O_x - 08.07.2010, 20:50
Re: What Do I Have To Do To Set GM To Midnight? - by [Weponz] - 08.07.2010, 20:55
Re: What Do I Have To Do To Set GM To Midnight? - by Hiddos - 08.07.2010, 20:57
Re: What Do I Have To Do To Set GM To Midnight? - by [Weponz] - 09.07.2010, 13:59

Forum Jump:


Users browsing this thread: 2 Guest(s)