GetPlayerName Help (Need It Quick Plese)
#2

This is basic, if you don't understand how to get players name you should really go and read SA-MP Wiki or something...
pawn Код:
if(strcmp(cmdtext,"/banbot",true)==0)
    {
        if(IsPlayerAdmin(playerid))
        {
            new name[MAX_PLAYER_NAME], str[128];
            GetPlayerName(playerid, name, sizeof(name));
            format(str, sizeof(str),"Administrator %s has banned Jeremy (Reason: TEST)", name);
            SendClientMessage(playerid,0xff0000ff, "----------------------------------");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Banning the bot simulation successful, If the bot still talking unloadhim with the rcon.");
            SendClientMessageToAll(COLOR_RED,str);
            SendClientMessageToAll(COLOR_GREY, "Jeremy has left the server (Kicked).");
            return 1;
        }
        else return SendClientMessage(playerid,COLOR_YELLOW,"You are not [AU] Member");
    }
Reply


Messages In This Thread
GetPlayerName Help (Need It Quick Plese) - by Alex_Obando - 20.02.2011, 15:04
Re: GetPlayerName Help (Need It Quick Plese) - by xRyder - 20.02.2011, 15:10
Respuesta: GetPlayerName Help (Need It Quick Plese) - by Alex_Obando - 20.02.2011, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)