SA-MP Forums Archive
[HELP]Teamjack problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Teamjack problem (/showthread.php?tid=90816)



[HELP]Teamjack problem - urkiefly101 - 10.08.2009

I've got this on the bottom of my script
Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == gTeam[playerid] && GetPlayerState(i) == PLAYER_STATE_DRIVER && IsPlayerInVehicle(i, vehicleid))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
break;
}
}
}
}
return 1;
}

But when a teammember presses the enter vehicle button, he doesn't do anything, but on the players side who he wants to jack, he jacks the car... How can i fix this?


Re: [HELP]Teamjack problem - urkiefly101 - 10.08.2009

A'none?


Re: [HELP]Teamjack problem - urkiefly101 - 11.08.2009

Bumpie bump