Get distance between players
#8

pawn Код:
CMD:suspect(playerid, params[])
{
if(gTeam[playerid] == 1)
{
new id, reason[30];
if(sscanf(params, "rs[30]", id, reason)) return SendClientMessage(playerid, COLOR_ORANGE, "/suspect [id] [reason]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_PINK2, "Error: Target Player Not connected");
new string[80], playername[25], idname[25];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(id, idname, sizeof(idname));
gTeam[id] = TEAM_CRIMINAL;
format(string, sizeof(string), "Police Radio: %s(%d): has suspected %s(%d) for %s", playername, playerid, idname, id, reason);
foreach(Player, i)
{
if(gTeam[i] == 1) SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
}
}
return 1;
}
RuiGy can you put your code in this command which i have given you above?

i am not much of a good scripter

thanks
Reply


Messages In This Thread
Get distance between players - by ZBits - 11.07.2012, 00:44
Re: Get distance between players - by Abhi - 11.07.2012, 00:48
Re: Get distance between players - by ReneG - 11.07.2012, 01:26
Re: Get distance between players - by Larceny - 11.07.2012, 01:53
Re: Get distance between players - by ZBits - 11.07.2012, 03:07
Re: Get distance between players - by ZBits - 11.07.2012, 03:16
Re: Get distance between players - by ZBits - 11.07.2012, 03:22
Re: Get distance between players - by ZBits - 11.07.2012, 03:40
Re: Get distance between players - by Larceny - 11.07.2012, 03:44
Re: Get distance between players - by ZBits - 11.07.2012, 03:44

Forum Jump:


Users browsing this thread: 1 Guest(s)