23.02.2010, 16:45
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?
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?