Job problem (IM PAYING)
#4

Just use a Variable, eg.

pawn Код:
new JobPolice[MAX_PLAYERS];

if (strcmp("/announce", cmdtext, true, 9) == 0)
    {
    if (JobPolice[playerid] == 1)
    {
        if(cmdtext[9] == 0)
        {
            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /announce [message]");
            return 1;
    }
    new str[128];
        GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "San Andreas Police Announcement: %s [%s]", cmdtext[10], str);
    SendClientMessageToAll(COLOR_ANNOUNCE, str);
    }
    return 1;
    }
Something like that? You can make special things for only Police by checking with
pawn Код:
if (JobPolice[playerid] == 1)
Reply


Messages In This Thread
Job problem (IM PAYING) - by killdahobo99 - 27.07.2009, 02:07
Re: Job problem - by stud4125 - 27.07.2009, 02:40
Re: Job problem - by killdahobo99 - 27.07.2009, 03:08
Re: Job problem (PAYING) - by Abernethy - 27.07.2009, 03:34
Re: Job problem (PAYING) - by killdahobo99 - 27.07.2009, 03:38
Re: Job problem (PAYING) - by Abernethy - 27.07.2009, 03:42
Re: Job problem (PAYING) - by killdahobo99 - 27.07.2009, 14:46
Re: Job problem (IM PAYING) - by Paladin - 27.07.2009, 14:48

Forum Jump:


Users browsing this thread: 2 Guest(s)