Create Command
#4

Here bud, maybe this will help you out!

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.
Reply


Messages In This Thread
Create Command - by m4m5 - 07.12.2014, 06:33
Re: Create Command - by OsteeN - 07.12.2014, 07:57
Re: Create Command - by m4m5 - 08.12.2014, 03:53
Re: Create Command - by gtasarules14 - 08.12.2014, 04:01
Re: Create Command - by Glossy42O - 08.12.2014, 04:04
Re: Create Command - by Doller - 08.12.2014, 09:34

Forum Jump:


Users browsing this thread: 2 Guest(s)