Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for R:UNOS

A snippet that allows SA-MP Players to have unlimited Nitrous without a waiting period.

R:UNOS
Saturday, June 16th, 2007 at 3:02:23am MDT 

  1. #include <a_samp>
  2.  
  3. forward Update(playerid);
  4.  
  5. new Timers[MAX_PLAYERS];
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.         print(" R:UNOS - Unlimited Nitrous & No Waiting Period.");
  10.         return 1;
  11. }
  12.  
  13. public OnPlayerCommandText(playerid, cmdtext[])
  14. {
  15.         if (strcmp("/unos", cmdtext, true, 10) == 0)
  16.         {
  17.                 if(!IsPlayerInAnyVehicle(playerid))
  18.                     return SendClientMessage(playerid, 0xFF4040FF, "You need to be in a vehicle in order to start unlimited Nitrous.");
  19.             new vid = GetPlayerVehicleID(playerid);
  20.                 AddVehicleComponent(vid, 1010); // 10x Nitro
  21.                 Timers[playerid] = SetTimerEx("Update", 20000, true, "i", playerid);
  22.                 return SendClientMessage(playerid, 0x40FF40FF, "[SUCCESS] You will now have unlimited Nitrous with no waiting period.");
  23.         }
  24.         return 0;
  25. }
  26.  
  27. public Update(playerid)
  28. {
  29.         if(!IsPlayerConnected(playerid) || !IsPlayerInAnyVehicle(playerid))
  30.         return KillTimer(Timers[playerid]);
  31.         new vid = GetPlayerVehicleID(playerid);
  32.         AddVehicleComponent(vid, 1010);
  33.         return 1;
  34. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
worth-right