18.03.2011, 18:23
hi all ,, i want make a pickup , when you come on that pickup with car you get teleported ,, i was trying like this
but it doesnt work ,
and i was trying like this:
and when im come i get teleported but car stay ,, only me gat teleported
somebody can help please
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == alsp)
{
if (IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, 1298.6200,391.5222,-14.4206);
}
return 1;
}
return 1;
}
and i was trying like this:
Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,1322.1727,397.4924,19.5547))
{
if (IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, 1298.6200,391.5222,-14.4206);
}
}
if(IsPlayerInRangeOfPoint(playerid,1.0,1292.8981,376.8788,-14.4161))
{
if (IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, 1309.3567,403.0032,19.5547);
}
}
return 1;
}
somebody can help please

