24.06.2011, 21:28
I have a problem i do not get errors or warnings, but my pickup did not show in game...
ongamemodeinit
i have faggio pickup but not nrg... Can somebody help me
pawn Код:
new faggio;
new nrg;
pawn Код:
faggio = CreatePickup(1274,23,-71.605,3310.047,17.908);
nrg = CreatePickup(1274,23,4903.774,1002.968,219.791);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == faggio)
{
SendClientMessage(playerid, -1, ""#COL_GREY"Very good");
GivePlayerMoney(playerid, 5000);
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
if(pickupid == nrg)
{
SendClientMessage(playerid, -1, ""#COL_GREY"Very good");
GivePlayerMoney(playerid, 2500);
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
return 1;
}