11.07.2009, 15:40
no, problem is only with vehicles whats spawn after command typed.
on of my commands:
when I put the cmd in other gm, it works
p.s.
^ that is part of my levels system
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; }
p.s.
Код:
if (gPlayerLevel[playerid] >= 1)