Disable Commands in jail.
#2

Yeah i'll make an example


pawn Код:
// Variable
new jailed[MAX_PLAYERS];
// Command
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
    if(jailed[playerid] = 1)
    {
             SendClientMessage(playerid,COLOR,"[Server]: Your in jail, you can't use commands");
             return 0;
             }
            // other coding here
            return 1;
}
Reply


Messages In This Thread
Disable Commands in jail. - by ollis93 - 13.11.2010, 20:02
Re: Disable Commands in jail. - by Steven82 - 13.11.2010, 21:04
Re: Disable Commands in jail. - by ollis93 - 13.11.2010, 21:12
Re: Disable Commands in jail. - by Steven82 - 13.11.2010, 21:24
Re: Disable Commands in jail. - by randomkid88 - 13.11.2010, 21:27
Re: Disable Commands in jail. - by Steven82 - 13.11.2010, 21:28
Re: Disable Commands in jail. - by bigcomfycouch - 13.11.2010, 21:28
Re: Disable Commands in jail. - by Steven82 - 13.11.2010, 21:33
Re: Disable Commands in jail. - by ollis93 - 13.11.2010, 21:35
Re: Disable Commands in jail. - by Cypress - 13.11.2010, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)