Multiple spawn locations
#6

PHP код:
public OnGameModeInit()
{
    
SetGameModeText("Ryan's Script");
    
//classes
    /*Class ID 0*/
    
AddPlayerClass(105,2498.5054,-1684.9028,13.4242,19.7164,24,250,27,250,30,300); // Grove spawn
    /*Class ID 1*/
    
AddPlayerClass(106,2498.5054,-1684.9028,13.4242,19.7164,24,250,27,250,30,300); // Grove spawn
    /*Class ID 2*/
    
AddPlayerClass(107,2498.5054,-1684.9028,13.4242,19.7164,24,250,27,250,30,300); // Grove spawn
    /*Class ID 3*/
    
AddPlayerClass(/*select id*/2304.2261,-1650.4573,14.5472,178.9947,24,250,27,250,30,300); // green bottles spawn loc
    /*Class ID 4*/
    
AddPlayerClass(/*select id*/2304.2261,-1650.4573,14.5472,178.9947,24,250,27,250,30,300); // green bottles spawn loc
    /*Class ID 5*/
    
AddPlayerClass(/*select id*/2304.2261,-1650.4573,14.5472,178.9947,24,250,27,250,30,300); // green bottles spawn loc
    //vehicles
    
AddStaticVehicle(529,2435.1013,-1653.6965,13.0872,91.0876,42,42); // willard car near grove bridge
    
AddStaticVehicle(529,2174.5579,-1631.6096,14.3125,76.5158,42,42); // willard across street from binco
    
AddStaticVehicle(536,2409.5146,-1664.2186,13.1985,268.6294,12,1); // blade near pole ganton bridge
    
AddStaticVehicle(536,2509.3828,-1671.7753,13.1396,350.0872,12,1); // blade near cj garage
    
AddStaticVehicle(522,2387.0464,-1663.9783,13.0410,267.5524,6,25); // NRG near ganton
    
AddStaticVehicle(522,2507.1743,-1694.7504,13.1306,356.7531,6,25); // nrg in cj house garage
    
AddStaticVehicle(522,2296.1838,-1640.3344,14.3374,226.5287,6,25); // Green bottles car
    
AddStaticVehicle(409,2304.4858,-1635.9442,14.0725,179.6976,6,25); // Green bottles stretch
    
UsePlayerPedAnims();
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass (playeridclassid)
{
    switch(
classid)
    {
        case 
0..2//if the class id is 0 to 2, AKA Grove
        
{
            
SetPlayerPos(playerid2498.8213,-1684.5753,13.4179); //Grove position
            
SetPlayerCameraPos(playerid2497.7188,-1680.2167,13.3547); //Grove camera
            
SetPlayerCameraLookAt(playerid2498.5054,-1684,13.3547); //Grove position
            
SetPlayerFacingAngle (playerid12.5838); //Grove angle
        
}
        case 
3..5//if the class id is 3 to 5, AKA Ballas
        
{
            
SetPlayerPos(playerid2304.2261,-1650.4573,14.5472); //Ballas Position
            
SetPlayerCameraPos(playerid2304.2261,-1650.4573,14.5472); //Ballas Camera
            
SetPlayerCameraLookAt(playerid2304.3811,-1655.1173,14.4548); //Ballas Position
            
SetPlayerFacingAngle (playerid178.9947); //Ballas Angle
        
}
    }
    return 
1;

Reply


Messages In This Thread
Multiple spawn locations - by rymax99 - 20.01.2013, 06:33
Re: Multiple spawn locations - by Threshold - 20.01.2013, 06:39
Re: Multiple spawn locations - by rymax99 - 20.01.2013, 07:10
Re: Multiple spawn locations - by Mr_Zlodei - 20.01.2013, 07:15
Re: Multiple spawn locations - by rymax99 - 20.01.2013, 07:29
Re: Multiple spawn locations - by Mr_Zlodei - 20.01.2013, 07:38

Forum Jump:


Users browsing this thread: 2 Guest(s)