23.06.2012, 20:06
pawn Код:
new prisonInt;
new prisonOut;
pawn Код:
prisonInt = CreatePickup(1318, 1, -2624.9873,1411.7520,7.0938, -1); //For pickup to prison
prisonOut = CreatePickup(1318, 1, -5158.9604,2863.5662,32.1891 -1);//Prison door to go out (pickup) //prisonOut
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == prisonInt) {
SetPlayerPos(playerid,-5159.8765,2867.2976,32.1891);
}
else if(pickupid == prisonOut) {
SetPlayerPos(playerid,-2623.3435,1412.0813,7.0938);
}
return 1;
}