I wish you Happy Easter !
What will happen to you
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menunew Jail[MAX_PLAYERS];
else if (strcmp(cmd, "jail", true) == 0) {
if(IsPlayerAdmin(playerid))
{
new plr = FindPlayerIDFromString(tmp);
if(Jail[plr] == 1) {
SendClientMessage(playerid,COLOR_RED,"This Player Is In Jail !");
}
if(Jail[plr] == 0) {
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED, "USAGE: /c jail [Nick/ID]");
else {
new string[256];
if (plr != INACTIVE_PLAYER_ID) {
SetPlayerPos(plr,387.873, -509.743, 8.98706,0,0);
SetPlayerWeapon(plr,0,0);
SetPlayerWeapon(plr,0,0);
SetPlayerWeapon(plr,0,0);
TogglePlayerControllable(plr,0);
RemovePlayerMarker(plr);
format(string,sizeof(string),"Admin %s has jailed %s",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(plr,COLOR_YELLOW,"You have been jailed!");
SendClientMessage(plr,COLOR_YELLOW,"[Jail System By [RBS]Moby]");
Jail[plr] = 1;
}
else SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
}
}
}else{
SendClientMessage(playerid,COLOR_RED,"***Not have permission to use this command!");
}
return 1;
}
else if(strcmp(cmd, "unjail", true) == 0) {
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
new plr = FindPlayerIDFromString(tmp);
if(Jail[plr] == 0) {
SendClientMessage(playerid,COLOR_RED,"This Player Is Not In Jail !");
}
if(Jail[plr] == 1) {
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED, "USAGE: /c unjail [Nick/ID]");
else{
if (plr != INACTIVE_PLAYER_ID) {
new string[256];
format(string,sizeof(string),"Admin %s has unjailed %s!",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerPos(plr,397.688, -471.821, 11.5172,0,0);
TogglePlayerControllable(plr,1);
SetPlayerMarker(plr,1);
SendClientMessage(plr,COLOR_YELLOW,"You have been unjailed!");
SendClientMessage(plr,COLOR_YELLOW,"[Jail System By [RBS]Moby]");
Jail[plr] = 0;
}
else SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
}
}
}else{
SendClientMessage(playerid,COLOR_RED,"***Not have permission to use this command!");
}
return 1;
}