team car jack
#1

how to move a player +10 z up if he tries to jack a team mate?
i got something like this:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float, Float:y, Float:z;
if(gTeam[playerid] == TEAM_USA)
{
//i dont know what to put here
{
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+10);
}
}
return 1;
}

but the rest of the code is ok right?
Reply


Messages In This Thread
team car jack - by jamesbond007 - 23.02.2010, 16:45
Re: team car jack - by Miguel - 23.02.2010, 17:30
Re: team car jack - by jamesbond007 - 23.02.2010, 17:39
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:42
Re: team car jack - by jamesbond007 - 23.02.2010, 17:45
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:46
Re: team car jack - by jamesbond007 - 23.02.2010, 17:49
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:52
Re: team car jack - by jamesbond007 - 23.02.2010, 18:00
Re: team car jack - by VonLeeuwen - 23.02.2010, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)