21.03.2014, 07:33
Could I get a suspect command with this team thing please?
pawn Код:
if(gTeam[playerid] == TEAM_COPS)
if(gTeam[playerid] == TEAM_COPS)
CMD:su(playerid,params[])
{
if(gTeam[playerid] != TEAM_COPS) return SendClientMessage(playerid, 0xFF0000AA, "You need to be a cop.");
if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "/su [playerid]");
if(!IsPlayerConnected(strval(params) || strval(params) == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Invalid player ID.");
SetPlayerWantedLevel(strval(params), GetPlayerWantedLevel(strval(params)+1);
SetPlayerColor(strval(params), 0xFFC400AA);
SendClientMessage(strval(params), 0xFF0000AA, "You have been suspected.");
SendClientMessage(playerid, 0x00FFFFAA, "Player has been suspected.");
return 1;
}