08.12.2014, 04:01
Here bud, maybe this will help you out!
https://sampforum.blast.hk/showthread.php?tid=278880
And also pal
https://sampforum.blast.hk/showthread.php?tid=278880
And also pal
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if( Pickupid == pickup1)
{
SetPlayerPos(playerid, 1299.14, -794.77 , 1084.00);
SetPlayerInterior(playerid, 5 );
SendClientMessage(playerid, COLOR_RED, "To Exit Type /exitah");
return 1;
}
if( pickupid == pickup2)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
return 1;
}
if( pickupid == pickup3)
{
GivePlayerWeapon(playerid, 38, 9999);
GivePlayerWeapon(playerid, 32, 9999);
GivePlayerWeapon(playerid, 26, 9999);
return 1;
}
return 1;
}//I added this to close the function, you did not close it properly.
//CMDs here, you can not have commands under any public functions as far as I am aware.