no, problem is only with vehicles whats spawn after command typed.
on of my commands:
Код:
if(strcmp(cmdtext, "/nrg", true) == 0) {
if (gPlayerLevel[playerid] >= 1)
if (IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,0xFF0606FF,"You already have a car!");
} else {
new Float:Angle;
new VehicleID;
GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
VehicleID = CreateVehicle(522,X,Y,Z,Angle,1,-1,-1); PutPlayerInVehicle(playerid,VehicleID,0);
if(GetPlayerInterior(playerid)) LinkVehicleToInterior(VehicleID,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(VehicleID,GetPlayerVirtualWorld(playerid));
ChangeVehicleColor(VehicleID,0,7);
SendClientMessage(playerid,0x33AA33AA,"Enjoy");
if (gPlayerLevel[playerid] < 1)
SendClientMessage(playerid, 0xFF0606FF, "You are not allowed to use this command!");
}
return 1;
}
when I put the cmd in other gm, it works
p.s.
Код:
if (gPlayerLevel[playerid] >= 1)
^ that is part of my levels system