Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- public OnFilterScriptInit()
- {
- AddStaticVehicle(579, 2043.7872, 1343.8685, 10.6719, 285.0782, 0, 1);
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:rigbomb(playerid, params[])
- {
- new cmd[128], idx;
- cmd = strtok(cmdtext, idx);
- // check if the player is in a vehicle
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, 0xFF0000AA,"You need to be inside a vehicle to use this command.");
- return 1;
- }
- // check if the player is on a BMX
- // if(IsABmx(GetPlayerVehicleID(playerid)))
- // {
- // SendClientMessage(playerid, 0xFF0000AA, "You cannot use this on a BMX.");
- // return 1;
- // }
- // get the vehicle id and store in 'car' variable
- // new car=GetPlayerVehicleID(playerid);
- // check if the player is eligible to use the command
- // if(IsAMob(playerid) || (HitmanPermission(playerid) && HitmanMission[playerid][E_AGENT_ONMISSION] == 1))
- // {
- if(strcmp(params, "timer", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"Timer");
- return 1;
- }
- if(strcmp(params, "remote", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"Remote");
- return 1;
- }
- if(strcmp(params, "radio", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"Radio");
- return 1;
- }
- if(strcmp(params, "speed", true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000AA,"Speed");
- return 1;
- }
- // }
- //else
- //{
- //SendClientMessage(playerid, 0xFF0000AA,"You are not eligible to use this command. You must be an official mafia member.");
- //return 1;
- //}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement