Some questions
#1

Hi guys. I need some help. I am beginning a new DM script, but I have not installed GTA SA in my PC. So, first of all I need the exact coordinates of:

LS Hospital (All Saints)
Ganton Gym
LSPD

Now, for the /ban cmd I have this:

pawn Код:
CMD:ban(playerid, params[]) {
    new id, r;
    if(sscanf(params, "uz", id, r)) {
        if(IsPlayerAdmin(playerid)) {
            if(id != INVALID_PLAYER_ID) {
                new name[MAX_PLAYER_NAME], str[128];
                GetPlayerName(id, name, MAX_PLAYER_NAME);
                format(str, sizeof(str), "An Admin has banned %s. Reason: %s", name, r);
                BanEx(id, str);
            }
            else return SendClientMessage(playerid, COLOR_GREY, "Error: Player not found");
        }
        else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You have no acces to this command");
    }
    else return SendClientMessage(playerid, COLOR_ORANGE, "Syntax Error: /kick [playerid/partofname] [reason (optional)]");
    return 1;
}
Should this work? :

pawn Код:
format(str, sizeof(str), "An Admin has banned %s. Reason: %s", name, r);
BanEx(id, str);
Reply


Messages In This Thread
Some questions - by Rivera - 11.04.2011, 13:07
Re: Some questions - by Calgon - 11.04.2011, 13:12
Re: Some questions - by Rivera - 11.04.2011, 13:16
Re: Some questions - by Rivera - 11.04.2011, 13:18
Re: Some questions - by Calgon - 11.04.2011, 13:28
Re: Some questions - by Rivera - 11.04.2011, 18:37
Re: Some questions - by Prumpuz - 11.04.2011, 20:26
Re: Some questions - by Rivera - 05.05.2011, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)