new pdhq;
pdhq = CreatePickup(1318,2, -1392.0272,2646.1555,55.9788, 0);
public OnPlayerPickUpPickup(playerid, pickupid){if(pickupid == pdhq){ SetPlayerInterior(playerid,6); SetPlayerPos(playerid,1494.325195,1304.942871,1093.289062);}return 1;}
if(IsPlayerInRangeOfPoint(playerid, 0.5, -1392.0272,2646.1555,55.9788)){ SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); GameTextForPlayer(playerid, \"Interior\", 1000, 1); SetPlayerInterior(playerid, 0); }if(IsPlayerInRangeOfPoint(playerid,0.5,1494.325195,1304.942871,1093.289062); { SetPlayerPos(playerid, -1392.0272,2646.1555,55.9788); GameTextForPlayer(playerid, \"Város\" , 1000, 1); SetPlayerInterior(playerid, 0);}
Így egyszerûbb if(IsPlayerInRangeOfPoint(playerid, 0.5, -1392.0272,2646.1555,55.9788)){ SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); GameTextForPlayer(playerid, \"Interior\", 1000, 1); SetPlayerInterior(playerid, 0); }if(IsPlayerInRangeOfPoint(playerid,0.5,1494.325195,1304.942871,1093.289062); { SetPlayerPos(playerid, -1392.0272,2646.1555,55.9788); GameTextForPlayer(playerid, \"Város\" , 1000, 1); SetPlayerInterior(playerid, 0);}