[HELP] Can't Spawn Veh In Another World
#1

I have problem, i can't spawn all vehicle in another world..
What is the problem?

PHP код:
forward CarSpawner(playerid,cmodel);
public 
CarSpawner(playerid,cmodel)
{
    if(
IsPlayerInAnyVehicle(playerid)) return 1;
    if((
PlayerInfo[playerid][Level] < 1) && ((cmodel == 425) || (cmodel == 520) || (cmodel == 447) || (cmodel == 464) || (cmodel == 476) || (cmodel == 432))) {
        
SendClientMessage(playeridCOLOR_BRIGHTRED"You must be admin to spawn this vehicle");
        return 
1;
    }
     else
    {
        new 
Float:xFloat:yFloat:zFloat:angle;
         
GetPlayerPos(playeridxyz);
         
GetPlayerFacingAngle(playeridangle);
        new 
ctsvehicle=CreateVehicle(cmodelxyzangle, -1, -110000);
        
PutPlayerInVehicle(playeridctsvehicle0);
        
SetVehicleVirtualWorld(ctsvehicleGetPlayerVirtualWorld(playerid));
        
LinkVehicleToInterior(ctsvehicleGetPlayerInterior(playerid));
        
VehicleInfo[ctsvehicle][Temp] = 1;
        
//ChangeVehicleColor(ctsvehicle,0,7);
    
}
    return 
1;

Thx
Reply


Messages In This Thread
[HELP] Can't Spawn Veh In Another World - by TitanZ - 18.11.2015, 07:13
Re: [HELP] Can't Spawn Veh In Another World - by iKarim - 18.11.2015, 08:16
Re: [HELP] Can't Spawn Veh In Another World - by AbyssMorgan - 18.11.2015, 14:04

Forum Jump:


Users browsing this thread: 3 Guest(s)