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
- #include <a_samp>
- forward Update(playerid);
- new Timers[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print(" R:UNOS - Unlimited Nitrous & No Waiting Period.");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/unos", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, 0xFF4040FF, "You need to be in a vehicle in order to start unlimited Nitrous.");
- new vid = GetPlayerVehicleID(playerid);
- AddVehicleComponent(vid, 1010); // 10x Nitro
- Timers[playerid] = SetTimerEx("Update", 20000, true, "i", playerid);
- return SendClientMessage(playerid, 0x40FF40FF, "[SUCCESS] You will now have unlimited Nitrous with no waiting period.");
- }
- return 0;
- }
- public Update(playerid)
- {
- if(!IsPlayerConnected(playerid) || !IsPlayerInAnyVehicle(playerid))
- return KillTimer(Timers[playerid]);
- new vid = GetPlayerVehicleID(playerid);
- AddVehicleComponent(vid, 1010);
- return 1;
- }
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.
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.