Multiple spawn locations
#3

Код:
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(2304.2261,-1650.4573,14.5472,178.9947,24,250,27,250,30,300); // green bottles spawn loc
    /*Class ID 4*/AddPlayerClass(2304.2261,-1650.4573,14.5472,178.9947,24,250,27,250,30,300); // green bottles spawn loc
    /*Class ID 5*/AddPlayerClass(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 (playerid, classid)
{
public OnPlayerRequestClass(playerid, classid)
    switch(classid)
    {
        case 0..2 //if the class id is 0 to 2, AKA Grove
		{
			SetPlayerPos(playerid, 2498.8213,-1684.5753,13.4179); //Grove position
            SetPlayerCameraPos(playerid, 2497.7188,-1680.2167,13.3547); //Grove camera
            SetPlayerCameraLookAt(playerid, 2498.5054,-1684,13.3547); //Grove position
            SetPlayerFacingAngle (playerid, 12.5838); //Grove angle
        }
        case 3..5: //if the class id is 3 to 5, AKA Ballas
        {
            SetPlayerPos(playerid, 2304.2261,-1650.4573,14.5472); //Ballas Position
            SetPlayerCameraPos(playerid, 2304.2261,-1650.4573,14.5472); //Ballas Camera
            SetPlayerCameraLookAt(playerid, 2304.3811,-1655.1173,14.4548); //Ballas Position
            SetPlayerFacingAngle (playerid, 178.9947); //Ballas Angle
   	  	}
    return 1;
}
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(14) : warning 217: loose indentation
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(17) : warning 213: tag mismatch
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(17) : warning 202: number of arguments does not match definition
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(1 : warning 213: tag mismatch
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(1 : warning 202: number of arguments does not match definition
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(19) : warning 213: tag mismatch
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(19) : warning 202: number of arguments does not match definition
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(21) : warning 217: loose indentation
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(39) : error 029: invalid expression, assumed zero
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(40) : error 001: expected token: ";", but found "switch"
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(40) : warning 217: loose indentation
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(42 -- 43) : error 029: invalid expression, assumed zero
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(56) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Ryan\SkyDrive\Documents\Scripting\gamemod es\Ryan.pwn(56) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
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)