Is it possible removing enter/exit pickups
#8

Try this one i think it should work.
Код:
 public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid) 
{ 
    if(oldinteriorid == 0 && newinteriorid == 3) 
    { 
        new Float:iF[3];
        GetPlayerPos(playerid, iF[0], iF[1], iF[2]);
        SetPVarFloat(playerid, "LSX", iF[0]);
        SetPVarFloat(playerid, "LSY", iF[1]);
        SetPVarFloat(playerid, "LSZ", iF[2]);
        SetPVarInt(playerid, "LSINT", GetPlayerInterior(playerid));
        SetPVarInt(playerid, "LSVW", GetPlayerVirtualWorld(playerid));
    } 
    if(oldinteriorid == 3 && newinteriorid == 0) 
    { 
        SetPlayerPos(playerid,GetPVarFloat(playerid, "LSX"),GetPVarFloat(playerid, "LSY"),GetPVarFloat(playerid, "LSZ")); 
    } 
    return 1; 
}
Test this but i think it should work also you might want to add the VW and Interior
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)