Need Help With Player Name.
#1

Hello, Im alex, I need you guys to help me with the GetPlayerName (%s) I have this script that is a bot, So when I type /banbot it'll say [Name Of Admin (%s)] Has Banned Jeremy (Reason: Becoming noob)



Code:


Код:
if (strcmp(cmdtext, "/banbot", true) == 0)
    {
		if(IsPlayerAdmin(playerid))
		{
            SendClientMessage(playerid,0xff0000ff, "----------------------------------");
	        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Banning the bot simulation successful, If the bot still talking unloadhim with the rcon.");
	        SendClientMessageToAll(COLOR_RED,"Administrator has banned Jeremy (Reason: TEST)");
	        SendClientMessageToAll(COLOR_GREY, "Jeremy has left the server (Kicked).");
	        return 1;
		}
		else
		{
			SendClientMessage(playerid,COLOR_YELLOW,"You are not [AU] Member");
			return 1;
		}
    }

	return 0;
}
Reply


Messages In This Thread
Need Help With Player Name. - by Alex_Obando - 20.02.2011, 03:07
Re: Need Help With Player Name. - by Haydz - 20.02.2011, 03:09
Respuesta: Need Help With Player Name. - by Alex_Obando - 20.02.2011, 03:11
Respuesta: Need Help With Player Name. - by Alex_Obando - 20.02.2011, 03:58

Forum Jump:


Users browsing this thread: 2 Guest(s)