Useful Commands #1
#6

Hidden Command
Code:
	if(strcmp(cmd, "/other", true) == 0 || strcmp(cmd, "/hidden", true) == 0) {
		SendPlayerFormattedText(playerid,"Look at you, you found the hidden command!!!",0);
	return 1;
	}
Don't put this in your /commands or /help.

800 foot fall from your current location
Code:
	if(strcmp(cmd, "/bigfall", true) == 0) {
				if(IsPlayerInAnyVehicle(playerid)) {
				    new Float:X;
					new Float:Y;
					new Float:Z;
				    new VehicleID;
				    GetPlayerPos(playerid, X, Y, Z);
				    VehicleID = GetPlayerVehicleID(playerid);
					SetVehiclePos(VehicleID, X, Y, Z + 800.00);
					SetPlayerFacingAngle(playerid,Ang);
					GivePlayerWeapon(playerid,46,1);
				} else {
					new Float:X;
					new Float:Y;
					new Float:Z;
					GetPlayerPos(playerid, X, Y, Z);
					SetPlayerPos(playerid, X, Y, Z + 800.00);
					SetPlayerFacingAngle(playerid,Ang);
					GivePlayerWeapon(playerid,46,1);
					GameTextForPlayer(playerid, "~w~Weeeeeeeeeeeeeeeeee!!",8000,5);
 				 }
			return 1;
		}
Wtf?
Code:
		else if(strcmp(cmd, "/wtf", true) == 0) {
			if(IsPlayerInAnyVehicle(playerid)) {
					new Float:X;
					new Float:Y;
					new Float:Z;
				  new VehicleID;
				  GetPlayerPos(playerid, X, Y, Z);
				  VehicleID = GetPlayerVehicleID(playerid);
					SetVehiclePos(VehicleID, X, Y, Z + 100000000000000);
					SetPlayerFacingAngle(playerid,Ang);
					SetPlayerInterior(playerid,0);
					GameTextForPlayer(playerid, "~y~OMGWTF~p~BBQ ~r~BIGP3NISLOLRARROF~g~LCOPTER!!11s~w~hift11one",6000,5);
				} else {
					new Float:X;
					new Float:Y;
					new Float:Z;
					GetPlayerPos(playerid, X, Y, Z);
					SetPlayerPos(playerid, X, Y, Z + 100000000000000);
					SetPlayerFacingAngle(playerid,Ang);
					SetPlayerInterior(playerid,0);
					GameTextForPlayer(playerid, "~y~OMGWTF~p~BBQ ~r~BIGP3NISLOLRARROF~g~LCOPTER!!11s~w~hift11one",6000,5);
					}
			return 1;
		}
OMG ITS GONE!!!
Code:
		if(strcmp(cmdtext,"/clearchat",true)==0) // Chat window is gone, fomg!
		{
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
			SendClientMessage(playerid,COLOR_GREY," ");
            SendClientMessage(playerid,COLOR_GREY," ");
		return 1;
		}
i do nothing
Code:
		if(strcmp(cmdtext,"/nothing",true)==0) 
		{
            //do nothing
		return 1;
		}
Speak your soul
Code:
		else if(strcmp(cmd, "/sayall", true) == 0) { //type "/sayall ~r~ Hello bob!" (Edit the MSG and text)
  			new name[256];
  			new tmp[256];
    		new tstring[256];
  			tmp = strtokspace(cmdtext, idx);
  			GetPlayerName(playerid,name,sizeof(name));
  			format(tstring, sizeof(tstring), "*** %s: %s",name,tmp);
  			GameTextForAll(tmp,5000,3);
   		return true;
		}
Reply


Messages In This Thread
Useful Commands #1 - by Allan - 18.06.2006, 22:24
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [AU]Ownage - 26.06.2006, 21:58
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by kaka - 26.06.2006, 22:45
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by switch - 27.06.2006, 00:28
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by OffRoader23 - 27.06.2006, 00:51
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by vCE - 27.06.2006, 01:02
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by switch - 27.06.2006, 01:46
Teleporting a vehicle just in the front of you. - by Joshua Yu - 03.07.2006, 10:38
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Donny_k - 04.07.2006, 02:46
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Whitestrom - 04.07.2006, 04:37
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Mike - 04.07.2006, 11:51
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Roka - 04.07.2006, 12:11
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by rapidZ - 04.07.2006, 12:15
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Roka - 04.07.2006, 12:16
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Roka - 09.07.2006, 16:10
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Bearz - 10.07.2006, 19:15
Re: Teleporting a vehicle just in the front of you. - by Staf - 13.07.2006, 16:54
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by LennardF[NL] - 13.07.2006, 17:15
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Jamming - 13.07.2006, 23:23
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Joshua Yu - 14.07.2006, 01:26
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [QB]Flame^ - 01.08.2006, 08:50
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 23.09.2006, 19:40
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [EGG]Marco - 23.09.2006, 20:47
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Towlies - 24.09.2006, 05:10
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Me - 24.09.2006, 09:12
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 24.09.2006, 09:20
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by boylett - 24.09.2006, 10:15
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 24.09.2006, 10:39
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [EGG]Marco - 24.09.2006, 17:23
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by DeC.dual - 24.09.2006, 17:31
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Towlies - 24.09.2006, 18:02
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by 50p - 24.09.2006, 18:11
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [R][O][G][3][R] - 25.09.2006, 00:06
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 25.09.2006, 03:19
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [R][O][G][3][R] - 25.09.2006, 14:06
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by [R][O][G][3][R] - 25.09.2006, 23:27
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 10.10.2006, 11:33
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by FeaR - 10.10.2006, 12:56
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by yom - 10.10.2006, 13:59
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Nitroglycerine - 10.10.2006, 14:20
Re: Post your Useful/Intresting/Weird OnPlayerCommandText Commands! - by Nitroglycerine - 10.10.2006, 15:34

Forum Jump:


Users browsing this thread: 4 Guest(s)