Help! showing the player name
#2

I can't understand, what you mean, but maybe that :
pawn Код:
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);
        }
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
        SendClientMessageToAll(COLOR_YELLOW,"%s Just Joined in 4 Mansion's Admin Zone /az",PlayerName);
        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");
}
But that is only with that name, with that vehicle i need to think !

I think delete that :
pawn Код:
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v);
        }
and try. If that dont work, try to add there that :
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,RED,"You are in car");
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)