08.03.2011, 20:14
Tente :
pawn Код:
Pickups[0] = CreatePickup(1318, 1,1782.914428,-1920.249267,14.382690,0);
Pickups[1] = CreatePickup(1318, 1,1210.6628,3.6025,1000.9219,0);
Pickups[2] = CreatePickup(1247, 1,919.4602,-1252.4756,16.2109,0); // pickup dA RUA PARA DENTRO DO INTERIOR DA PRF ( COORDENADAS DA RUA )
Pickups[3] = CreatePickup(1318, 1,322.3081,302.5601,999.1484,0); // PICKUP DE DENTRO DO INTERIOR DA PRF. PARA SAIR ( COORDENADAS DO INTERIOR )
Pickups[4] = CreatePickup(1318, 1,460.2881,-88.9196,999.5547,0); // pickup hitman ( dentro do int para fora da casa )
Pickups[5] = CreatePickup(1318, 1,2602.7339,-2140.5642,0.9193,0);// pickup hitman ( fora para dentro )
Pickups[6] = CreatePickup(1318, 1,433.5812,-82.3710,999.5547,0);// pickup hitman SAIDA DE EMERGENCIA ( DENTRO DA HQ )
Pickups[7] = CreatePickup(1318, 1,2501.1611,-2137.5500,28.8679,0);// pickup hitman SAIDA DE EMERGENCIA ( LOCAL ONDE FICA O HELI )
Pickups[8] = CreatePickup(1318, 1,1700.9705,-1667.7224,20.2188,0);//pickup hospital LS
Pickups[9] = CreatePickup(1318, 1,1727.0764,-1638.6683,20.2233,0);//pickup hospital SF
Pickups[10] = CreatePickup(1318, 1,1714.1385,-1641.5660,27.2116,0);//pickup hospital LV
Pickups[11] = CreatePickup(1318, 1,1722.8374,-1673.2769,20.2231,0);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Pickups[0]) {
SetPlayerPos(playerid,1204.809936,-11.586799,1000.921875); // pickup do interior dos FUNKEIROS (dentro do interior)
SetPlayerInterior(playerid,2);
}
else if(pickupid == Pickups[1]) {
SetPlayerPos(playerid,1758.5928,-1921.1804,13.5734); // pickup do interior dos FUNKEIROS (FORA do interior)
SetPlayerInterior(playerid,0);
}
else if (pickupid == Pickups[2]) {
SetPlayerPos(playerid,324.2178,304.3070,999.1484); // quando entra no pickup o cara vem parar nesa coordenada dentro do interior
SetPlayerInterior(playerid,5);
}
else if (pickupid == Pickups[3]) {
SetPlayerPos(playerid,915.9857,-1252.3611,15.6641); // quando entra no pickup o cara vem parar nesa coordenada dentro do interior
SetPlayerInterior(playerid,0);
}
else if(pickupid == Pickups[4]) {
SetPlayerPos(playerid,2597.3022,-2141.0974,-0.2188); // pickup HITMAN ( fora da casa )
SetPlayerInterior(playerid,0);
}
else if(pickupid == Pickups[5]) {
SetPlayerPos(playerid,456.9174,-88.5879,999.5547); // pickup HITMAN ( dentro do interior para fora da HQ )
SetPlayerInterior(playerid,4);
}
else if(pickupid == Pickups[6]) {
SetPlayerPos(playerid,2453.4399,-2125.7600,39.4173); // pickup HITMAN ( LOCAL ONDE ESTБ O HELICOPTERO )
SetPlayerInterior(playerid,0);
}
else if (pickupid == Pickups[7]) {
SetPlayerPos(playerid,437.8624,-83.4255,999.5547); // pickup HITMAN ( DENTRO DA HQ )
SetPlayerInterior(playerid,4);
}
else if (pickupid == Pickups[8]) {
SetPlayerPos(playerid,2028.5271,-1408.3379,16.9922); // pickup Hospital LS
SetPlayerInterior(playerid,0);
}
else if (pickupid == Pickups[9]) {
SetPlayerPos(playerid,-2662.9165,628.5927,14.4531); // pickup Hospital SF
SetPlayerInterior(playerid,0);
}
else if (pickupid == Pickups[10]) {
SetPlayerPos(playerid,1606.557983,1833.699707,10.820312); // pickup Hospital LV
SetPlayerInterior(playerid,0);
}
else if (pickupid == Pickups[11]) {
SetPlayerPos(playerid,1722.8374,-1673.2769,20.2231); // pickup Hospital LV
SetPlayerInterior(playerid,0);
}
return 1;
}