Unsuspect Command Not working ( Requesting Lock )
#10

if(strcmp(cmd, "/cancelsuspect", true) == 0) // by GrandpaNicholes
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /cancelsuspect [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2 || IsACop(playerid) && PlayerInfo[playerid][pRank] >= 4)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (PlayerInfo[giveplayerid][pWanted] == 0)
{
SendClientMessage(playerid,COLOR_NICERED,"Player not Wanted!");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "You Have cleared %s's crimes!",giveplayer);
SendClientMessage(playerid,COLOR_LIGHTRED,string);
GameTextForPlayer(giveplayerid, "~w~Unsuspected!", 5000, 3);
format(string, sizeof(string), "[ADMIN]: %s Has Unsuspected %s (%d)",sendername, giveplayer, giveplayerid);
ABroadCast(COLOR_LIGHTRED,string, 5);
ClearCrime(giveplayerid);
format(string, sizeof(string), "%s(%d) has unsuspected %s(%d) reason: %s",sendername, giveplayerid, giveplayer, giveplayerid, reason);
SendRadioMessage(3, COLOR_DUTY, string);
SendRadioMessage(2, COLOR_DUTY, string);
SendRadioMessage(1, COLOR_DUTY, string);
format(string, sizeof(string), "Unsupected be a good citizen!",sendername)
SendClientMessage(giveplayerid, COLOR_LIME, string);
SetPlayerToTeamColor(giveplayerid);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Unsuspected to %s",d,m,y,h,mi,s,sendername,giveplayer);
GiveLog(string);
}
}
else
{
format(string, sizeof(string), "** %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "YOur rank is to low to use this command!");
}
}
return 1;
}
Reply


Messages In This Thread
Unsuspect Command Not working ( Requesting Lock ) - by Alex_Smitholie - 13.06.2010, 09:20
Re: Unsuspect Command Not working - by TheInnocentOne - 13.06.2010, 09:23
Re: Unsuspect Command Not working - by Cameltoe - 13.06.2010, 09:26
Re: Unsuspect Command Not working - by Alex_Smitholie - 13.06.2010, 09:28
Re: Unsuspect Command Not working - by Blt950 - 13.06.2010, 09:29
Re: Unsuspect Command Not working - by Alex_Smitholie - 13.06.2010, 09:29
Re: Unsuspect Command Not working - by Blt950 - 13.06.2010, 09:30
Re: Unsuspect Command Not working - by Dark_Kostas - 13.06.2010, 09:30
Re: Unsuspect Command Not working - by Alex_Smitholie - 13.06.2010, 09:32
Re: Unsuspect Command Not working - by Alex_Smitholie - 13.06.2010, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)