[HELP] Getting crazy...
#2

//At the top of the screen
pawn Код:
new gTeam[MAX_PLAYERS];
#define TEAM_LVPD 1
//OnPlayerCommandText:
pawn Код:
if (strcmp("/onduty", cmdtext, true, 7) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(gTeam[i] == TEAM_LVPD)
{
new str[256], pname[256];
GetPlayerName(playerid, pname, 256);
format(str, 256, "Officer %s Is now on duty!", pname, cmdtext[7]);
SendClientMessageToAll(COLOR_BLUE, str);
}
}
}
return 1;
}
Reply


Messages In This Thread
[HELP] Getting crazy... - by FreddeN - 15.06.2009, 13:47
Re: [HELP] Getting crazy... - by bpeterson - 15.06.2009, 14:01
Re: [HELP] Getting crazy... - by FreddeN - 15.06.2009, 14:15
Re: [HELP] Getting crazy... - by FreddeN - 15.06.2009, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)