Problems whit gamemode??
#1

It got a little problem, I log into my server with my game mode and then I of course choose a player I only see the players not that I can not decide what's the problem?

script:
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <a_objects>


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("Avatar VS Army");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("Avatar VS Army");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	SetGameModeText("Avatar VS Army");
	AddPlayerClass(0,-822.5373,2425.3203,156.5033,238.2379,0,0,0,0,0,0); // avatar
	AddPlayerClass(0,219.5288,1823.0076,7.5255,268.1451,0,0,0,0,0,0); // army
	AddPlayerClass(70,268.8752,1883.2294,-30.0938,355.7089,24,500,0,0,0,0); // dokter
	
	//army voertuigen
	AddStaticVehicle(425,333.1179,1971.5842,18.2066,359.5413,43,0); // army
  AddStaticVehicle(425,345.7631,1965.5938,18.2170,359.9521,43,0); // army
  AddStaticVehicle(425,356.2416,1964.0848,18.2228,359.8922,43,0); // army
  AddStaticVehicle(425,356.2416,1964.0848,18.2228,359.8918,43,0); // army
  AddStaticVehicle(425,367.6030,1960.8876,18.2276,359.8585,43,0); // army
  AddStaticVehicle(548,329.0512,1927.8240,19.3213,359.9970,1,1); // army 2
  AddStaticVehicle(548,340.0202,1922.2705,19.2194,359.9994,1,1); // army 2
  AddStaticVehicle(548,355.2154,1921.4357,19.2666,34.8588,1,1); // army 2
  AddStaticVehicle(548,216.5180,2023.9471,19.2552,58.0562,1,1); // army 3
  AddStaticVehicle(548,206.0785,2008.5409,19.2659,82.9974,1,1); // army 3
  AddStaticVehicle(548,213.1842,1980.1451,19.3090,144.1083,1,1); // army 4
  AddStaticVehicle(548,233.8839,1967.7778,19.2576,176.9879,1,1); // army 4
  AddStaticVehicle(548,200.5080,1886.2487,19.2899,157.1456,1,1); // army 5
  AddStaticVehicle(548,227.8028,1890.3942,19.2885,193.2182,1,1); // army 5
  
  //Objecten
  CreateObject (987, 85.056846618652, 1922.9118652344, 16.779695510864, 0, 0, 0);
	CreateObject (987, 73.087837219238, 1922.994140625, 16.640625, 0, 0, 0);
	CreateObject (987, 61.066070556641, 1922.7003173828, 16.640625, 0, 0, 0) ;
	CreateObject (987, 49.086349487305, 1922.5804443359, 16.640625, 0, 0, 0);
	CreateObject (987, 36.788887023926, 1923.072265625, 16.640625, 0, 0, 0);
	CreateObject (987, 24.478591918945, 1923.2620849609, 16.640625, 0, 0, 0 );
	CreateObject (987, 12.516227722168, 1923.2978515625, 16.640625, 0, 0, 0);
	CreateObject (987, 0.61587142944336, 1923.6236572266, 16.640625, 0, 0, 0);
	CreateObject (987, -11.446442604065, 1923.3198242188, 16.640625, 0, 0 , 0);
	CreateObject (987, -23.39525604248, 1923.3569335938, 16.640625, 0, 0, 0);
	CreateObject (987, -35.377021789551, 1923.2119140625, 16.647617340088, 0, 0, 0);
	CreateObject (987, -47.29280090332, 1923.0908203125, 16.640625 , 0, 0, 0);
	CreateObject (987, -59.284061431885, 1923.1644287109, 16.640625, 0, 0, 0);
	CreateObject (987, -70.784614562988, 1922.47265625, 16.818399429321, 0, 0, 0);
	CreateObject (987, -79.815650939941 , 1922.3631591797, 18.941125869751, 0, 0, 0);
	CreateObject (987, -98.97974395752, 1922.5493164063, 17.571557998657, 0, 0, 0);
	CreateObject (987, -90.174865722656, 1922.4752197266, 19.150991439819, 0, 0, 0);
 	CreateObject ( 987, -110.47485351563, 1922.5341796875, 15.598994255066, 0, 0, 0);
 	CreateObject (987, -116.91124725342, 1922.8271484375, 18.51051902771, 0, 0, 0);
 	CreateObject (987, -127.11572265625, 1922.9016113281, 18.598604202271, 0, 0, 0 );
 	CreateObject (987, -148.07249450684, 1917.3640136719, 14.488605499268, 0, 0, 0);
 	CreateObject (987, -157.11639404297, 1917.6793212891, 14.722373962402, 0, 0, 0);
 	CreateObject (987, -166.26080322266, 1917.6557617188, 17.005630493164, 0 , 0, 0);
 	CreateObject (987, -169.24813842773, 1917.5036621094, 17.940544128418, 0, 0, 0);
 	CreateObject (987, -172.39508056641, 1917.6784667969, 19.105297088623, 0, 0, 0);
 	CreateObject (987, -178.80581665039, 1918.6239013672 , 22.347171783447, 0, 0, 0);
 	CreateObject (987, -199.58450317383, 1922.0969238281, 33.609233856201, 0, 0, 0);
	CreateObject (987, -208.50332641602, 1922.32421875, 35.711589813232, 0, 0, 0);
	CreateObject (987, -211.45121765137, 1922.6499023438, 38.989311218262, 0, 0, 0);
	CreateObject (987, -214.48495483398, 1922.4207763672, 42.431076049805, 0, 0, 0);
 	CreateObject (987, -217.41206359863, 1922.3039550781, 45.758522033691, 0, 0, 0);
 	CreateObject (987, -220.02841186523, 1921.7476806641, 48.703903198242, 0, 0, 0);
 	CreateObject (987, -222.02856445313, 1921.8874511719, 50.294612884521, 0, 0, 0);
 	CreateObject (987, -192.92691040039, 1919.3294677734, 36.819625854492, 0, 0 , 0);
 	CreateObject (3550, -1023.0017089844, 2716.8159179688, 47.382633209229, 0, 0, 0);
 	CreateObject (3550, -1023.2014160156, 2710.8132324219, 47.234195709229, 0, 0, 0);
 	CreateObject (3550, -1023.2027587891, 2704.8642578125, 47.234195709229 , 0, 0, 0);
 	CreateObject (3475, 389.59350585938, 2082.4050292969, 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 389.55599975586, 2088.1740722656, 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 389.17129516602, 2094.4125976563, 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 389.04516601563, 2100.2448730469, 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 389.18548583984, 2105.9377441406, 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 388.93829345703, 2111.9987792969 , 19.016799926758, 0, 0, 0);
 	CreateObject (3475, 388.09301757813, 2117.7836914063, 18.609910964966, 0, 0, 0);
 	CreateObject (3475, 388.16857910156, 2123.1726074219, 18.609910964966, 0, 0, 0);
 	CreateObject (3475, 388.35192871094, 2128.2770996094, 18.977495193481, 0, 0, 0);
 	CreateObject (3475, 388.36077880859, 2133.8623046875, 19.90994644165, 0, 0, 0);
 	CreateObject (3475, 388.35913085938, 2139.2395019531, 20.815776824951, 0, 0, 0);
 	CreateObject (3475, 388.58111572266 , 2145.2194824219, 22.035840988159, 0, 0, 0);
 	CreateObject (3475, 389.00192260742, 2151.3024902344, 24.153921127319, 0, 0, 0);
 	CreateObject (3475, 388.98098754883, 2156.9621582031, 26.123392105103, 0, 0, 0);
 	CreateObject (3475, 389.0087890625, 2162.8439941406, 28.17017364502, 0, 0, 0);
 	CreateObject (3475, 389.24926757813, 2168.3737792969, 30.734859466553, 0, 0, 0);
 	CreateObject (3475, 389.47994995117, 2174.4438476563, 34.634464263916, 0, 0, 0);
 	CreateObject (3475 , 389.63442993164, 2180.2919921875, 36.68824005127, 0, 0, 0);
 	CreateObject (3475, 390.00283813477, 2185.9541015625, 37.899265289307, 0, 0, 0);
 	CreateObject (3475, 390.10076904297, 2191.1437988281, 38.235343933105, 0, 0, 0);
 	CreateObject (3475, 390.04428100586, 2195.958984375, 38.114894866943, 0, 0, 0);
 	CreateObject (3475, 390.31457519531, 2201.4089355469, 37.967136383057, 0, 0, 0);
 	CreateObject (3475, 390.32629394531, 2207,37.824634552002, 0, 0, 0);
	CreateObject (3475, 390.73706054688, 2212.171875, 38.141147613525, 0, 0, 0);
 	CreateObject (3475, 390.95367431641, 2218.0236816406, 38.876140594482, 0, 0, 0);
 	CreateObject (3475, 390.88745117188, 2223.7231445313, 39.589340209961, 0, 0, 0);
 	CreateObject (3475, 391.0302734375, 2229.4382324219, 40.306503295898, 0, 0, 0);
 	CreateObject (3475, 391.22351074219, 2235.115234375, 40.893405914307, 0, 0, 0);
	CreateObject (3475, 391.50500488281, 2240.4614257813, 41.429439544678, 0, 0, 0) ;
 	CreateObject (3475, 392.13748168945, 2247.0769042969, 42.090858459473, 0, 0, 0);
 	CreateObject (3475, 392.56405639648, 2252.8293457031, 42.481201171875, 0, 0, 0);
 	CreateObject (3475, 392.71075439453, 2258.6623535156, 42.35530090332, 0, 0, 0 );
 	CreateObject (3475, 392.7805480957, 2264.5852050781, 42.230770111084, 0, 0, 0);
 	CreateObject (3475, 393.00610351563, 2270.4382324219, 42.101161956787, 0, 0, 0);
 	CreateObject (3475, 393.07513427734, 2276.1516113281, 42.018859863281, 0, 0, 0);
 	CreateObject (3475, 393.21060180664, 2282.09375, 41.795623779297, 0, 0, 0);
 	CreateObject (3475, 393.37631225586, 2288.0690917969, 41.570907592773, 0, 0, 0);
 	CreateObject (3475, 393.56848144531, 2293.8947753906, 41.320377349854, 0, 0 , 0);
 	CreateObject (3475, 393.74758911133, 2299.5756835938, 40.229751586914, 0, 0, 0);
 	CreateObject (3475, 393.77633666992, 2305.1345214844, 39.091285705566, 0, 0, 0);
 	CreateObject (3475, 393.85751342773, 2310.7885742188, 37.932151794434, 0, 0, 0);
 	CreateObject (3475, 393.76818847656, 2316.6760253906, 36.935997009277, 0, 0, 0);
 	CreateObject (3475, 393.7568359375, 2322.5261230469, 36.47981262207, 0, 0, 0);
 	CreateObject (3475, 393.35891723633, 2327.6125488281, 34.51685333252, 0 , 0, 0);
	CreateObject (3475, 393.57940673828, 2332.4702148438, 32.358753204346, 0, 0, 0);
	CreateObject (3475, 393.80545043945, 2337.2084960938, 30.211263656616, 0, 0, 0);
	CreateObject (3475, 393.97119140625, 2342.9357910156, 28.44097328186, 0, 0, 0);
	CreateObject (3475, 393.94122314453, 2348.5368652344, 26.983617782593, 0, 0, 0);
	CreateObject (3475, 394.10482788086, 2354.1201171875, 26.660095214844, 0, 0, 0);
	CreateObject (3475, 393.98501586914, 2359.841796875, 26.65989112854 , 0, 0, 0);
	CreateObject (3475, 394.14685058594, 2365.1342773438, 26.657424926758, 0, 0, 0);
	CreateObject (3475, 394.64318847656, 2371.3872070313, 26.846462249756, 0, 0, 0);
	CreateObject (3475, 394.62701416016, 2377.2060546875, 26.564792633057, 0, 0, 0);
	CreateObject (3475, 394.82299804688, 2382.9011230469, 24.737911224365, 0, 0, 0);
	CreateObject (3475, 394.8854675293, 2385.9216308594, 23.724834442139, 0, 0, 0);
	CreateObject (3475, 395.013671875, 2391.5581054688 , 21.870742797852, 0, 0, 0);
	CreateObject (3475, 395.12939453125, 2397.4450683594, 19.830635070801, 0, 0, 0);
	CreateObject (3475, 394.31967163086, 2403.490234375, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 394.62246704102, 2408.931640625, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 394.76324462891, 2414.0102539063, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 394.86291503906, 2419.4892578125, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 394.99792480469 , 2424.7722167969, 17.864631652832, 0, 0, 0);
	CreateObject (3475, 395.16366577148, 2429.8645019531, 17.864631652832, 0, 0, 0);
	CreateObject (3475, 380.09909057617, 2479.4255371094, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 380.6877746582, 2485.5061035156, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 381.12109375, 2491.1596679688, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 381.16027832031, 2496.2966308594, 17.860549926758, 0, 0, 0);
	CreateObject (3475 , 381.27114868164, 2501.7482910156, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 381.16366577148, 2506.9660644531, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 381.45269775391, 2511.8627929688, 17.898059844971, 0, 0, 0);
	CreateObject ( 3475, 381.65295410156, 2517.5200195313, 17.897218704224, 0, 0, 0);
	CreateObject (3475, 381.74160766602, 2523.0456542969, 17.896919250488, 0, 0, 0);
	CreateObject (3475, 381.70111083984, 2528.4704589844, 17.952301025391, 0, 0, 0);
	CreateObject (3475, 381.72045898438, 2533.2641601563, 17.93342590332, 0, 0, 0);
	CreateObject (3475, 382.08129882813, 2537.7922363281, 17.915237426758, 0, 0, 0);
	CreateObject (3475, 382.17984008789, 2542.2126464844, 17.915237426758, 0, 0, 0);
	CreateObject (3475, 382.44055175781, 2548.251953125, 17.915237426758, 0, 0, 0);
	CreateObject (3475, 382.48422241211, 2553.8447265625, 17.962692260742, 0, 0, 0);
	CreateObject (3475, 382.75454711914, 2559.3754882813, 18.002796173096, 0, 0, 0);
	CreateObject (3475, 382.93228149414, 2565.3256835938, 17.743362426758, 0, 0, 0);
	CreateObject (3475, 382.8642578125, 2571.1274414063, 17.929927825928, 0, 0, 0);
	CreateObject (3475, 383.24047851563, 2576.6176757813, 17.802276611328, 0, 0, 0 );
	CreateObject (3475, 383.38836669922, 2581.3598632813, 17.803455352783, 0, 0, 0);
	CreateObject (3475, 383.49078369141, 2586.8913574219, 17.841579437256, 0, 0, 0);
	CreateObject (3475, 383.43228149414, 2589.6860351563, 21.879880905151, 0, 0, 0);
	CreateObject (3475, 383.59451293945, 2592.4465332031, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 384.05996704102, 2598.1198730469, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 384.51544189453, 2603.0668945313, 17.860549926758, 0, 0 , 0);
	CreateObject (3475, 384.7809753418, 2608.6213378906, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 385.05633544922, 2613.2946777344, 17.860549926758, 0, 0, 0);
	CreateObject (3475, 385.34814453125, 2619.0717773438, 18.020896911621, 0, 0, 0);
	CreateObject (3475, 385.63238525391, 2624.5908203125, 19.22766494751, 0, 0, 0);
	CreateObject (3475, 385.61807250977, 2629.7248535156, 21.137088775635, 0, 0, 0);
	CreateObject (3475, 385.5595703125, 2632.0695800781, 25.846841812134, 0 , 0, 0);
	CreateObject (3475, 385.60430908203, 2637.5280761719, 29.151042938232, 0, 0, 0);
	CreateObject (3475, 298.71643066406, 2722.8645019531, 62.219924926758, 0, 0, 0);
	CreateObject (3475, 298.68713378906, 2728.3107910156, 61.219924926758, 0, 0, 0);
	CreateObject (3475, 298.88464355469, 2734.0258789063, 61.219924926758, 0, 0, 0);
	CreateObject (3115, -481.44659423828, 2116.8916015625, 133.7660369873, 0, 0, 0);
	CreateObject (3115, -328.11883544922, 1996.2742919922 , 131.41227722168, 0, 0, 0);
	CreateObject (3115, -356.29858398438, 1981.6008300781, 131.41076660156, 0, 0, 0);
	CreateObject (16093, -355.36901855469, 1996.7702636719, 132.5757598877, 0, 0, 0);
	CreateObject (16093, -329.86389160156, 2010.3647460938, 133.23152160645, 0, 0, 0);
	CreateObject (2921, -334.81781005859, 2013.5005664063, 131.5531463623, 0, 0, 0);
	CreateObject (16644, -321.669921875, 1954.1650390625, 125.66549682617, 0, 0, 0);
	CreateObject (3475, -548.5439453125, 2021.2176513672, 61.758987426758, 0, 0, 0);
	CreateObject (3475, -548.34765625, 2015.0894775391, 61.563674926758, 0, 0, 0);
	CreateObject (3475, -548.91223144531,2009.5212402344, 61.563674926758, 0, 0, 0);
	CreateObject (3475, -548.97521972656, 2009.3443603516, 61.758987426758, 0, 0, 0);
	CreateObject (3475, -548.54663085938, 1996.5961914063, 61.563674926758, 0, 0, 0);
	CreateObject ( 3475, -547.34197998047, 1989.4755859375, 61.577430725098, 0, 0, 0);
	CreateObject (3475, -548.65789794922, 1986.1453857422, 62.656677246094, 0, 0, 0);
	CreateObject (3475, -547.70050048828, 1992.2734375, 61.562068939209, 0, 0, 0 );
 	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid,-814.6920,2538.6025,95.8972);
	SetPlayerCameraPos(playerid,-814.6920,2538.6025,95.8972);
	SetPlayerCameraLookAt(playerid,-814.6920,2538.6025,95.8972);
	
	SetPlayerPos(playerid,277.0589,1954.5422,17.6406);
	SetPlayerCameraPos(playerid,277.0589,1954.5422,17.6406);
	SetPlayerCameraLookAt(playerid,277.0589,1954.5422,17.6406);
	
	SetPlayerPos(playerid,268.8752,1883.2294,-30.0938);
	SetPlayerCameraPos(playerid,268.8752,1883.2294,-30.0938);
	SetPlayerCameraLookAt(playerid,268.8752,1883.2294,-30.0938);
	
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
		return 1;
	}
	return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
the sript can you kopi to your pawno for find the problems
Reply
#2

can anyone help me?
Reply
#3


i think you forgot player angles so change with this

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid,272.9391,1883.4724,-30.3906);
	SetPlayerFacingAngle(playerid, 96.9165);
	SetPlayerCameraPos(playerid,-814.6920,2538.6025,95.8972);
	SetPlayerCameraLookAt(playerid,-814.6920,2538.6025,95.8972);

	SetPlayerPos(playerid,272.9391,1883.4724,-30.3906);
	SetPlayerFacingAngle(playerid, 96.9165);
	SetPlayerCameraPos(playerid,277.0589,1954.5422,17.6406);
	SetPlayerCameraLookAt(playerid,277.0589,1954.5422,17.6406);

	SetPlayerPos(playerid,272.9391,1883.4724,-30.3906);
	SetPlayerFacingAngle(playerid, 96.9165);
	SetPlayerCameraPos(playerid,268.8752,1883.2294,-30.0938);
	SetPlayerCameraLookAt(playerid,268.8752,1883.2294,-30.0938);

	return 1;
}
it needs a bit right i know but i'm sure you can handle it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)