19.07.2009, 15:08
Try using it like this:
Under OnGameModeInit:
and then:
pawn Код:
new BarrelJumpInfo;
new HellPickup;
pawn Код:
BarrelJumpInfo = CreatePickup(1239, 16, 1486.834351, -1439.052490, 184.249298);
HellPickup = CreatePickup(1239, 16, 385.595276, 387.092712, 15225.529297);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == HellPickup)
{
GameTextForPlayer(playerid, "~r~You Are In Hell!!! HAHAH!", 7000, 5);
MoveDynamicObject(HellDeur, 390.037781, 394.705811, 15221.083984, 1);
SetPlayerWeather(playerid, 21);
GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
}
if(pickupid == BarrelJumpInfo)
{
GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
}
return 1;
}