Car spawn help
#3

PHP код:
if(!strcmp(cmdtext"/car"true)) 
        { 
        new 
Float:up[3], carid
          
GetPlayerPos(playeridup[0], up[1], up[2]); 
        
carid CreateVehicle(411up[0]+2up[1]+2up[2], 0, -1, -10); 
        
PutPlayerInVehicle(playeridcarid0); 
        new 
currentveh
          
currentveh GetPlayerVehicleID(playerid); 
          
DestroyVehicle(currentveh); 
        
LinkVehicleToInterior(caridGetPlayerInterior(playerid)); 
        
SetVehicleVirtualWorld(caridGetPlayerVirtualWorld(playerid)); 
        
SendClientMessage(playerid0x20C92EFF"* You spawned a new Infernus car, you can also use the /carmenu to spawn other vehicle types."); 
        return 
1
        } 
Try it(Untested)
Reply


Messages In This Thread
Car spawn help - by ,TomY' - 14.01.2018, 15:31
Re: Car spawn help - by ,TomY' - 14.01.2018, 17:09
Re: Car spawn help - by KayJ - 15.01.2018, 12:33
Re: Car spawn help - by andrejc999 - 15.01.2018, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)