/(su)spect
#1

Could I get a suspect command with this team thing please?
pawn Код:
if(gTeam[playerid] == TEAM_COPS)
Reply
#2

Reply
#3

Reply
#4

Reply
#5

Reply
#6

Could you post all the teams that you have in your script?

It's like, the more information you give, the more we can help you. (....)
Reply
#7

pawn Код:
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;
}
Reply
#8

What ?
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)