[Tutorial] How to make Airdrop system? (using Mapandreas)
#8

I know it, but. I never use 'mapandreas' to be server include & plugin. Better you tell me what is the function of mapandreas or the airdop will be spawned around san andreas? you forgot to add random rewards and can be claimed like this.

Код:
new rewards;
	rewards = random(3);
 	switch(rewards)
  	{
   		case 0:
     	{
     	    new cashrandom=random(15000);
      		GivePlayerCash(playerid,cashrandom);
        	SendClientMessage(playerid, COLOR_CYAN, "[INFO]: You have received a random cash.");
     	}
      	case 1: 
       	{
        	new weaprandom = random(sizeof(WeaponsRandom));
			GivePlayerWeapon(playerid, WeaponsRandom[weaprandom][0], WeaponsRandom[weaprandom][1]);
         	SendClientMessage(playerid, COLOR_CYAN, "[INFO]: You have received a random weapons.");
      	}
       	case 2:
        {
            SetPlayerArmour(playerid, 50.0);
            SendClientMessage(playerid, COLOR_CYAN, "[INFO]: You have received a half armour.");
       	}
  	}
I forgot to share weapons random:
Код:
new const WeaponsRandom[][] =
{
    // do something
};
Reply


Messages In This Thread
How to make Airdrop system? (using Mapandreas) - by Gammix - 08.06.2015, 17:14
Re: How to make Airdrop system? (using Mapandreas) - by Excel™ - 09.06.2015, 15:56
Re: How to make Airdrop system? (using Mapandreas) - by Q_Lite - 12.06.2015, 08:47
Re: How to make Airdrop system? (using Mapandreas) - by justice96 - 21.06.2015, 15:30
Re: How to make Airdrop system? (using Mapandreas) - by Gammix - 21.06.2015, 16:26
Re: How to make Airdrop system? (using Mapandreas) - by justice96 - 21.06.2015, 16:36
Re: How to make Airdrop system? (using Mapandreas) - by Gammix - 22.06.2015, 04:06
Re: How to make Airdrop system? (using Mapandreas) - by justice96 - 22.06.2015, 04:15
Re: How to make Airdrop system? (using Mapandreas) - by Gammix - 22.06.2015, 07:15
Re: How to make Airdrop system? (using Mapandreas) - by justice96 - 22.06.2015, 07:18
Re: How to make Airdrop system? (using Mapandreas) - by $$inSane - 10.07.2015, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)