20.01.2010, 15:32
thats indeed strange
try that
try that
pawn Код:
CMD:arrest(playerid, params[])
{
if (gTeam[playerid] != TEAM_CROOKSF) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer");
if (sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Usage: /arrest [Playerid/PartOfName]");
if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Player not found");
if (id == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command on yourself");
if (gTeam[id] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED, "You cannot arrest a police officer");
new string[58];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "Police Officer %s has arrested you.", string);
SendClientMessage(id, COLOR_WHITE, string);
GetPlayerName(id, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "You have arrested %s", string);
SendClientMessage(playerid, COLOR_WHITE, string);
SetTimerEx("ArrestTimer", 20000, 0, "i", playerid); //playerid ?
SetPlayerPos(id, 264.9072, 77.9281, 1001.0391);
ResetPlayerMoney(playerid); //playerid ?
return 1;
}

