Some weap pickups teleport player into ocean -
[FAT]Klabauter[LST] - 26.09.2011
Hi all,
I have a slight problem with some weap pickups. When a player picks up some (not all) weapons, he gets teleported far away into the ocean.
It was only happening to some pickups and i was fixing the problem by moving the location of the pickup a little, but now i was trying to make a chainsaw pickup and it happens every time no matter where I move it.
This is the chainsaw pickup, ALL of my pickups look like this:
CreatePickup(341, 2, 2197.5918,-1092.1563,44.3047);
Any ideas on how to deal with this?
Thanks
Re: Some weap pickups teleport player into ocean -
skullmuncher1337 - 26.09.2011
Maybe some conflict inside OnPlayerPickupPickup ?
Re: Some weap pickups teleport player into ocean -
IceCube! - 26.09.2011
Show the code corresponding with those pickups?
Re: Some weap pickups teleport player into ocean -
[FAT]Klabauter[LST] - 26.09.2011
Quote:
Originally Posted by IceCube!
Show the code corresponding with those pickups?
|
public OnGameModeInit()
{
SetGameModeText( "TDM/RC/Race/Stunt" );
SetTeamCount( 6 );
ShowPlayerMarkers( 1 );
ShowNameTags( 1 );
EnableZoneNames( 1 );
EnableTirePopping( 1 );
UsePlayerPedAnims( );
AllowAdminTeleport( 1 );
// PlayerClasses
// Azteca //
AddPlayerClass(114,1760.3608,-1886.7689,13.5555,266.5584,24,125,26,125,29,500); //Aztecas1
etc......
//---------------------------- Team Vehicles -----------------------------------
AddStaticVehicle(407,1277.4718,-1370.8513,13.5003,180.9266,3,1); // sasha
AddStaticVehicle(433,2747.2231,-2448.4453,14.0850,270.0321,43,0); // armycars
etc......
//other pickups
CreatePickup(341, 2, 2197.5918,-1092.1563,44.3047);
CreatePickup(342, 2, 1262.4075,-1232.7633,15.4960);
CreatePickup(371, 2, 1528.4247,-1358.3525,329.4609);
etc......
after all the pickups it goes into turf stuff.
There is no code corresponding to the pickups that I know of, all the pickups are weapons/parachutes.
I didn't make this GM, it's SA Turf Wars v2 by Popo. I only edited the teams, vehicles, and added pickups.
Re: Some weap pickups teleport player into ocean -
HB - 26.09.2011
You probably need to assign the value CreatePickup returns into a variable, and use it to check the pickup id in OnPlayerPickUpPickup.