Unprison
#4

Try this one nigga
Quote:

if(strcmp(cmd, "/unprison", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /unprison [playerid/PartOfName]");
new playa;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You UnJailed %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* You were unjailed by Admin %s.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
PlayerInfo[playa][pJailed] = 0;
PlayerInfo[playa][pJailTime] = 0;
SetPlayerInterior(playa, 6);
SetPlayerPos(playa, 267.4746,77.3196,1001.0391);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!");
return 1;
}

Reply


Messages In This Thread
Unprison - by 1remember - 13.08.2014, 11:41
Re: Unprison - by 1remember - 13.08.2014, 17:14
Re: Unprison - by 2KY - 13.08.2014, 17:16
Re: Unprison - by Diti1 - 13.08.2014, 17:24
Re: Unprison - by zT KiNgKoNg - 13.08.2014, 17:31
Re: Unprison - by Blademaster680 - 13.08.2014, 18:48
Re: Unprison - by 1remember - 13.08.2014, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)