08.03.2011, 20:32
Код:
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); } if (pickupid == Pickups[1]) { SetPlayerPos(playerid,1758.5928,-1921.1804,13.5734); // pickup do interior dos FUNKEIROS (FORA do interior) SetPlayerInterior(playerid,0); } 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); } 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); } if (pickupid == Pickups[4]) { SetPlayerPos(playerid,2597.3022,-2141.0974,-0.2188); // pickup HITMAN ( fora da casa ) SetPlayerInterior(playerid,0); } if (pickupid == Pickups[5]) { SetPlayerPos(playerid,456.9174,-88.5879,999.5547); // pickup HITMAN ( dentro do interior para fora da HQ ) SetPlayerInterior(playerid,4); } if (pickupid == Pickups[6]) { SetPlayerPos(playerid,2453.4399,-2125.7600,39.4173); // pickup HITMAN ( LOCAL ONDE ESTБ O HELICOPTERO ) SetPlayerInterior(playerid,0); } if (pickupid == Pickups[7]) { SetPlayerPos(playerid,437.8624,-83.4255,999.5547); // pickup HITMAN ( DENTRO DA HQ ) SetPlayerInterior(playerid,4); } if (pickupid == Pickups[8]) { SetPlayerPos(playerid,2028.5271,-1408.3379,16.9922); // pickup Hospital LS SetPlayerInterior(playerid,0); } if (pickupid == Pickups[9]) { SetPlayerPos(playerid,-2662.9165,628.5927,14.4531); // pickup Hospital SF SetPlayerInterior(playerid,0); } if (pickupid == Pickups[10]) { SetPlayerPos(playerid,1606.557983,1833.699707,10.820312); // pickup Hospital LV SetPlayerInterior(playerid,0); } if (pickupid == Pickups[11]) { SpawnPlayer(playerid); } return 1; }