13.10.2011, 15:27
Here:
Код:
new InfernusPickup, NrgPickup, Nrg, Infernus;
Код:
NrgPickup = AddStaticPickup(1240,2,2118.9846,-2425.7520,13.5469,0); InfernusPickup = AddStaticPickup(1240,2,2127.5208,-2430.4951,13.5469,0);
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == NrgPickup) { new Float:X, Float:Y, Float:Z); GetPlayerPos(playerid, X,Y,Z); Nrg = CreateVehicle(522, X,Y,Z, 0.0, 0, 0, 60000); PutPlayerInVehicle(playerid, Nrg, 0); } if(pickupid == InfernusPickup) { new Float:X, Float:Y, Float:Z); GetPlayerPos(playerid, X,Y,Z); Infernus = CreateVehicle(411, X,Y,Z, 0.0, 0, 0, 60000); PutPlayerInVehicle(playerid, Infernus, 0); } return 1; }