06.04.2011, 13:24
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
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"); }