06.04.2011, 13:54
I can't understand, what you mean, but maybe that :
But that is only with that name, with that vehicle i need to think !
I think delete that :
and try. If that dont work, try to add there 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");
}
I think delete that :
pawn Код:
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v);
}
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,RED,"You are in car");