23.03.2010, 12:58
Hello.
I like to test a anti team carjack.
I made a new windows 7 user, because i don't can test alone the anti team carjack.
and then, the player are above the vehicle, so he (I xD) doesn't are in the vehicle, because he aren't ingame. So i don't can test it.
whats an alternative?
btw: my code:
I like to test a anti team carjack.
I made a new windows 7 user, because i don't can test alone the anti team carjack.
and then, the player are above the vehicle, so he (I xD) doesn't are in the vehicle, because he aren't ingame. So i don't can test it.
whats an alternative?
btw: my code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vehicleid) && gTeam[i] == gTeam[playerid])
{
// As test i made this:
if (!ispassenger)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
}
}
}
return 1;
}