Disable Commands in jail.
#8

Quote:
Originally Posted by bigcomfycouch
Посмотреть сообщение
You do not need to place it in every command.

Add this at the top of OnPlayerCommandText

pawn Код:
if (PlayerInfo[playerid][pPrison] == 1)    
{            
    return SendClientMessage(playerid, 0xFF000000, "ERROR: You cannot use commands whilst in jail.");
}
He needs to make PlayerInfo variables now, and now he needs to make an enum like a file based register login system. My way was harder for putting it in every script but my way doesn't require all the variables and confusion to new scripters. No offense, it looks like you just copioed that right out of your script or someone else's.
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)