24.09.2012, 00:53
Hey there. I have this script and I was wondering if any of you guys could help add the location to the backup. For example: "So and so is requesting backup at so and so location". Thanks.
pawn Код:
CMD:bk(playerid,params[])
{
new string[128];
new oname[24];
new playerb;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
if(ReqBkRecent[playerid] == 1)
{
SendClientMessage(playerid, COLOR_ERROR, "You have asked for backup recently. Please wait before asking for backup again");
return 1;
}
GetPlayerName(playerid,oname, 24);
for(new i=0;i<GetMaxPlayers();i++)
format(string, sizeof(string), "%s requesting BK!.", RPN(playerid), RPN(playerb));
SendCopMessage(COLOR_DARKRED, string);
ReqBk[playerid] =1;
SetPlayerColor(playerid,COLOR_PURPLE);
SetTimer("CopBackUpColour", 10000, 0);
ReqBkRecent[playerid] =1;
SetTimerEx("ReqBkRecentTime",50000,0,"i",playerid);
return 1;
}