Help! showing the player name
#1

Dear all

i have today a lot of questions
in this case i wanted since a long time a that;
so, this code work nice! but how you see this show
a message to all "Some Admin Just Joined in 4 Mansion's Admin Zone /az"
and my head is broken trying to put in there
example:

Martini002 Just Joined in 4 Mansion's Admin Zone /az"

a name of the player using the command =/
and other thing, i can use this /az command only when im in a car :S
if am not in a car then server show me, the command do not exist

i appreciate very much your helps guys
thanks

Код:
CMD:az(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid)) {
		if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");

		CarSpawner(playerid,0);
		TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
		tseconds[playerid] = 3;
		format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
		if(PlayerInfo[playerid][Level] >= 1) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
		vCount[playerid] = 1;
		Tx[playerid] = -921.010301;
		Ty[playerid] = 536.524665;
		Tz[playerid] = 6.936157;
		Ti[playerid] = 0;
		if(PlayerInfo[playerid][Level] >=4) {
			for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v);
		}
		format(telestring,43,"Welcome to 4 Mansion's Admin Zone");
		SetTimerEx("setstunt",3000,0,"i", playerid);
		SendClientMessageToAll(COLOR_YELLOW,"Some Admin Just Joined in 4 Mansion's Admin Zone /az");
		return 1;
	} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Reply


Messages In This Thread
Help! showing the player name - by martini002 - 06.04.2011, 13:24
Re: Help! showing the player name - by Gertin - 06.04.2011, 13:54
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:03
Re: Help! showing the player name - by Gertin - 06.04.2011, 14:26
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:27
Re: Help! showing the player name - by admantis - 06.04.2011, 14:35
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:37
Re: Help! showing the player name - by admantis - 06.04.2011, 14:40
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:41
Re: Help! showing the player name - by Gertin - 06.04.2011, 14:45
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:46
Re: Help! showing the player name - by RoboN1X - 06.04.2011, 14:55
Re: Help! showing the player name - by martini002 - 06.04.2011, 14:58
Re: Help! showing the player name - by RoboN1X - 06.04.2011, 15:08

Forum Jump:


Users browsing this thread: 3 Guest(s)