Help with GetPlayerScore
#4

Quote:
Originally Posted by Black Wolf
Посмотреть сообщение
Show the code of SpawnVehicleForPlayer
PHP код:
stock SpawnVehicleForPlayer(vehicleidplayerid)
{
    if(
SpawnedVehicle[playerid] != 0)
    {
    
//Check, if player spawned any vehicle
        
DestroyVehicle(SpawnedVehicle[playerid]);
        
//Destroy it
    
}
    new 
Float:XFloat:YFloat:ZFloat:Angle;
    
//Variable to save playerґs X,Y,Z and angle
    
GetPlayerPos(playeridFloat:XFloat:YFloat:Z);
    
//Get player positions and save it to variables
    
GetPlayerFacingAngle(playeridFloat:Angle);
    
//Get player facing angle and save it to variable
    
SpawnedVehicle[playerid] = CreateVehicle(vehicleidXY2.0Angle 90.0, -1, -1600);
    
//Spawn vehicle with random color in front of player
    
SetVehicleVirtualWorld(SpawnedVehicle[playerid], GetPlayerVirtualWorld(playerid));
    
//Set vehicle virtual world to player virtual world
    
LinkVehicleToInterior(SpawnedVehicle[playerid], GetPlayerInterior(playerid));
    
//Set vehicle interior to player interior
    
PutPlayerInVehicle(playeridSpawnedVehicle[playerid], 0);
    
//Put player to spawned vehicle as driver

The code still does not work.. Anyone can help it?
Reply


Messages In This Thread
Help with GetPlayerScore - by jaami - 17.09.2012, 15:17
Re: Help with GetPlayerScore - by ViniBorn - 17.09.2012, 15:28
Re: Help with GetPlayerScore - by Black Wolf - 17.09.2012, 15:29
Re: Help with GetPlayerScore - by jaami - 18.09.2012, 00:03
Re: Help with GetPlayerScore - by Black Wolf - 18.09.2012, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)