27.06.2006, 01:02
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;
}
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;
}

