/asay help
#2

pawn Код:
CMD:asay( playerid, params[ ] )
{
    new string[128], pname[MAX_PLAYER_NAME];
    if(pInfo[playerid][Level] < 2) return SendClientMessage(playerid,RED,">> You Must Be Level 2+ To Use This Command!");
    if(isnull(params)) return SendClientMessage(playerid, RED, "USAGE: /asay [msg]");
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), ">> Admin %s Says: %s", pname, params);
    SendClientMessageToAll(COLOR_LIGHTGREEN,string);
    return 1;
}
Edit: your string arrays was too small, i guess.
Reply


Messages In This Thread
/asay help - by YungGee - 05.02.2011, 08:14
Re: /asay help - by HyperZ - 05.02.2011, 08:18

Forum Jump:


Users browsing this thread: 2 Guest(s)