SA-MP Forums Archive
Some Commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some Commands (/showthread.php?tid=385538)



Some Commands - Windrush - 16.10.2012

I Need This Commands

• /rac = Respawn All Vehicle ( Except : When They driving it )
• /giveweapon = Give Weapon To Player Example: /giveweapon 1 deserteagle

+Rep if You Help meh


Re: Some Commands - doreto - 16.10.2012

For future commands use THIS or THIS


Re: Some Commands - Lordzy - 16.10.2012

Wrong section.
You must post this on Script Request Thread.

Anyway here, I give it a try on mobile.

pawn Код:
CMD:rac(playerid,params[])
{
   for(new i = 1; i<= MAX_VEHICLES; i++)
   {
     if(!IsVehicleOccupied(i))
     {
      SetVehicleToRespawn(i);
      }
   }
   return 1;
}
pawn Код:
CMD:giveweapon(playerid,params[])
{
   new tid;
   new wep;
   new ammo;
   if(sscanf(params,"uii",tid,wep,ammo)) return SendClientMessage(playerid, 0xFF0000, "Usage: /giveweapon [playerid] [weaponid] [ammo]");
   GivePlayerWeapon(tid,wep,ammo);
   return 1;
}
Edit: Late.

Btw, here I used weapon id mode.

So u must use

/giveweapon (playerid) (weapon id) (ammo).