27.03.2013, 16:34
(
Последний раз редактировалось [..MonTaNa..]; 30.04.2013 в 04:49.
)
.....
//if you are using bool you must true or false, you can't use 1 or 0 or else it will give you warning tag mismatch
//Example
//Variable
new bool:IsJailed[MAX_PLAYERS];
new bool:IsCaged[MAX_PLAYERS];
//Example
if(IsJailed[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use Commands When Jailed.");
if(IsCaged[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Caged.");
//it will send those message automaticaly if the bool variable is set to true Example: IsJailed[playerid] = true;
//if you are using normal you can use 1 or true (about true im not sure as i never tried using true on normal variable. so to be sure put 1)
//Example
//Variable
new IsJailed[MAX_PLAYERS];
new IsCaged[MAX_PLAYERS];
//Example
if(IsJailed[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use Commands When Jailed.");
if(IsCaged[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Caged.");
//it will send those message automaticaly if the bool variable is set to 1 Example: IsJailed[playerid] = 1;