Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <YSI\y_commands>
- #include <YSI\y_master>
- public OnFilterScriptInit()
- {
- AddStaticVehicle(579, 2043.7872, 1343.8685, 10.6719, 285.0782, 0, 1);
- ycmd("rigbomb");
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- forward ycmd_rigbomb(playerid, params, help);
- YCMD:rigbomb(playerid, params[], help)
- {
- if (help)
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "|------------------BOMB USAGE------------------|");
- SendClientMessage(playerid, 0xFFFFFFFF, " Timer bomb: /rigbomb timer [seconds]");
- SendClientMessage(playerid, 0xFFFFFFFF, " Remote bomb: /rigbomb remote [plant/detonate]");
- SendClientMessage(playerid, 0xFFFFFFFF, " Speed bomb: /rigbomb speed [speed threshold]");
- SendClientMessage(playerid, 0xFFFFFFFF, " SMS bomb: /rigbomb SMS [plant/detonate]");
- SendClientMessage(playerid, 0xFFFFFFFF, " Chemical bomb: /rigbomb chemical [plant/detonate]");
- SendClientMessage(playerid, 0xFFFFFFFF, "|----------------------------------------------|");
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, 0xFF0000AA,"You need to be inside a vehicle to use this command.");
- return 1;
- }
- if(strcmp(params, "timer", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Timer");
- return 1;
- }
- if(strcmp(params, "remote", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Remote");
- return 1;
- }
- if(strcmp(params, "SMS", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: SMS");
- return 1;
- }
- if(strcmp(params, "chemical", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"YCMD Confirmation: Chemical");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement