i got few questions...
#2

I can fix the first one:

pawn Код:
if(strcmp(cmdtext, "/mega", true, 5) == 0)
{
    if(gTeam[playerid] != TEAM_COP) return SendClientMessage(playerid, COLOR_RED, "You are not a cop");
    if(strlen(cmdtext[6]) == 0) return SendClientMessage(playerid, COLOR_RED, "Usage: /mega [msg]");

    new str[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(str, sizeof(str), "Officer %s: %s", pname, cmdtext[6]);
    SendClientMessageToAll(COLOR_BLUE, str);
    return 1;
}
Two takes testing so I wont bother with that, and with three, do you know how to use scriptfiles? Even if you did get a script like that, would you know how to use it?
Reply


Messages In This Thread
i got few questions... - by krisis32 - 12.04.2009, 16:17
Re: i got few questions... - by Lazarus - 12.04.2009, 16:28
Re: i got few questions... - by krisis32 - 12.04.2009, 16:34
Re: i got few questions... - by krisis32 - 12.04.2009, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)