[FilterScript] commands for stunt gm
#1

Commands For stunt:
1-Dialog MSGBOX long
2-speedboost (lmp)
3-automatic nitro (LMP)
4-load and save system: /s /l
5-define colors
6-carfix when you press 2
7-fightstyle
8-textdraw

PHP код:
///////////////////////////////////////////////////////////////
//FAOUR 
///////////////////////////////////////////////////////////////
#include <a_samp>
#include <Streamer>
new Text:Textdraw0;
new 
Text:Textdraw1;
new 
Text:Textdraw2;
new 
Text:Textdraw3;
new 
Text:Textdraw4;
new 
Text:Textdraw5;
new 
bool:speeding[MAX_PLAYERS];
new 
bool:AutoNOS[MAX_PLAYERS];
static 
Float:posx[MAX_PLAYERS] = 0.0;
static 
Float:posy[MAX_PLAYERS] = 0.0;
static 
Float:posz[MAX_PLAYERS] = 0.0;
static 
Float:zangle[MAX_PLAYERS] = 0.0;
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define yellow 0xFFFF00AA
#define l_red 0xFF0000AA
#define l_green 0x33FF33AA
#if defined FILTERSCRIPT
#define COLOR_GREY 0xAFAFAFAA
public OnFilterScriptInit() return print("eBoost By Epsilon  ---   loaded"),1;
public 
OnFilterScriptExit() return print("eBoost By Epsilon  ---   unloaded"),1;
public 
OnPlayerConnect(playerid) return speeding[playerid] = false;
public 
OnPlayerSpawn(playerid)
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Faour");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Faour");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Text Draws
    
Textdraw0 TextDrawCreate(500.0000001.000000"Stunt");
    
TextDrawBackgroundColor(Textdraw0, -1);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw00.4199992.300000);
    
TextDrawColor(Textdraw0, -16776961);
    
TextDrawSetOutline(Textdraw01);
    
TextDrawSetProportional(Textdraw01);
    
Textdraw2 TextDrawCreate(1.000000300.00000"Havefun");
    
TextDrawBackgroundColor(Textdraw2, -1);
    
TextDrawFont(Textdraw21);
    
TextDrawLetterSize(Textdraw10.6200001.900000);
    
TextDrawColor(Textdraw2,-16776961);
    
TextDrawSetOutline(Textdraw21);
    
TextDrawSetProportional(Textdraw21);
    
Textdraw3 TextDrawCreate(450.000000428.00000"/teleports");
    
TextDrawBackgroundColor(Textdraw2, -1);
    
TextDrawFont(Textdraw31);
    
TextDrawLetterSize(Textdraw30.6200001.900000);
    
TextDrawColor(Textdraw2,-16776961);
    
TextDrawSetOutline(Textdraw31);
    
TextDrawSetProportional(Textdraw31);
    
Textdraw4 TextDrawCreate(1.000000428.00000"/commands");
    
TextDrawBackgroundColor(Textdraw4, -1);
    
TextDrawFont(Textdraw41);
    
TextDrawLetterSize(Textdraw40.6200001.900000);
    
TextDrawColor(Textdraw4,-16776961);
    
TextDrawSetOutline(Textdraw41);
    
TextDrawSetProportional(Textdraw41);
    
Textdraw5 TextDrawCreate(500.000000100.000000"Good Luck");
    
TextDrawBackgroundColor(Textdraw0, -1);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw50.4199992.300000);
    
TextDrawColor(Textdraw0, -16776961);
    
TextDrawSetOutline(Textdraw01);
    
TextDrawSetProportional(Textdraw01);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid,2025.0773,-1423.5450,16.9922);
    
SetPlayerCameraPos(playerid,2016.2635,-1432.2692,13.5458);
    
SetPlayerCameraLookAt(playerid,2025.0773,-1423.5450,16.9922);
    
SetPlayerFacingAngle(playerid135.4);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
 if(
AutoNOS[playerid])
 {
 
SendClientMessage(playerid0x924161FF"[ ! ] Automatic nitro activated.");
 
AutoNOS[playerid] = true;
 }
 else
 {
 
SendClientMessage(playerid0x924161FF"[ ! ] Automatic nitro activated!");
 
AutoNOS[playerid] = true;
 }
 
ShowPlayerDialog(playerid123DIALOG_STYLE_MSGBOX,"{FFFFFF} welcome server","{00FFFF}/teleports.\n/commands","Ok","Close");
 return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
TextDrawShowForPlayer(playeridTextdraw1);
    
TextDrawShowForPlayer(playeridTextdraw0);
    
TextDrawShowForPlayer(playeridTextdraw2);
    
TextDrawShowForPlayer(playeridTextdraw3);
    
TextDrawShowForPlayer(playeridTextdraw4);
    
TextDrawShowForPlayer(playeridTextdraw5);
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapon(playerid2457);
    
GivePlayerWeapon(playerid41);
    
GameTextForPlayer(playerid,"/help",3500,6);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killerid,playerid,reason);
    if(
killerid != INVALID_PLAYER_ID)GivePlayerMoney(playerid,1000);
    if(
playerid != INVALID_PLAYER_IDGivePlayerMoney(playerid,-1000);
    
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
    {
    if(!
strcmp(cmdtext"/teleports"true))
    {
        new 
BigString15[1900];
        
strcat(BigString15"write massage here \n"1900);
        
strcat(BigString15"write massage here \n",1900);
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900);
        
strcat(BigString15"write massage here \n",1900);
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900);
        
strcat(BigString15"write massage here \n",1900);
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900);
        
strcat(BigString15"write massage here \n",1900);
        
strcat(BigString15"write massage here \n"1900 );
        
strcat(BigString15"write massage here \n"1900 );
        
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"--- Teleports ---"BigString15"Okey","");
        return 
1;
    }
    if(
strcmp(cmdtext,"/fightstyle",true)==0)
    {
    
ShowPlayerDialog(playerid321DIALOG_STYLE_MSGBOX"Fighting Style's","/NORMAL\n/BOXING\n/KUNGFU\n/KNEEHEAD\n/GRABKICK\n/ELBOW""okey""Cancel");
    return 
1;
    }
    if(
strcmp(cmdtext,"/commands",true)==0)
    {
    
ShowPlayerDialog(playerid123DIALOG_STYLE_MSGBOX,"commmands","/Teleports.\n/fightstyle\npress 2 to fix car. \npress H to jump car.\n/speedboost.\n\nLoad and Save: /s /l.\nTime:/night /day.","Ok","Close");
    return 
1;
    }
    if(!
strcmp(cmdtext"/me"true3)) // By Salsa(Leon)
    
{
        if(
cmdtext[3] == 0) {
        
SendClientMessage(playerid0xFF0000FF"USAGE: /Me (action)");
        return 
1;
        }
        new 
str[128];
        
GetPlayerName(playeridstrsizeof(str));
        
format(strsizeof(str), "* %s %s"strcmdtext[4]);
        
SendClientMessageToAll(0xFFFF00AAstr);
        return 
1;
    }
    if (
strcmp("/day"cmdtexttrue6) == 0)
    {
    
SetPlayerTime(playerid,13,0);
    return 
1;
    }
    if (
strcmp("/night"cmdtexttrue6) == 0)
    {
    
SetPlayerTime(playerid,0,0);
    return 
1;
    }
    if(
strcmp(cmdtext"/s"true) == 0)
    {
          
SendClientMessage(playerid,l_red"Your current position was saved! To teleport back here type /l!");
          if(
IsPlayerInAnyVehicle(playerid))
          {
              new 
VehicleID;
              
VehicleID GetPlayerVehicleID(playerid);
              
GetVehiclePos(VehicleIDposx[playerid], posy[playerid], posz[playerid]);
              
GetVehicleZAngle(VehicleIDzangle[playerid]);
          } else {
              
GetPlayerPos(playeridposx[playerid], posy[playerid], posz[playerid]);
              
GetPlayerFacingAngle(playeridzangle[playerid]);
          }
          return 
1;
    }
    if(
strcmp(cmdtext"/l"true) == 0)
    {
          
SendClientMessage(playeridl_red"Your saved position was loaded!");
          if(
IsPlayerInAnyVehicle(playerid))
          {
              new 
VehicleID GetPlayerVehicleID(playerid);
              
SetVehiclePos(VehicleIDposx[playerid], posy[playerid], posz[playerid]);
              
SetVehicleZAngle(VehicleIDzangle[playerid]);
          }
        else
        {
              
SetPlayerPos(playeridposx[playerid], posy[playerid], posz[playerid]);
              
SetPlayerFacingAngle(playeridzangle[playerid]);
          }
          return 
1;
    }
    if (
strcmp("/normal"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_NORMAL);
        
SendClientMessage(playeridl_red"FIGHT STYLE NORMAL");
        return 
1;
    }
    if (
strcmp("/boxing"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_BOXING);
        
SendClientMessage(playeridl_red"FIGHT STYLE Boxing");
        return 
1;
    }
    if (
strcmp("/kneehead"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_KNEEHEAD);
        
SendClientMessage(playeridl_red"FIGHT STYLE Kneehead");
        return 
1;
    }
    if (
strcmp("/grabkick"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_GRABKICK);
        
SendClientMessage(playeridl_red"FIGHT STYLE grabkick");
        return 
1;
    }
    if (
strcmp("/elbow"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_ELBOW);
        
SendClientMessage(playeridl_red"FIGHT STYLE Elbow");
        return 
1;
    }
    if (
strcmp("/kungfu"cmdtexttrue10) == 0)
    {
        
SetPlayerFightingStyle (playeridFIGHT_STYLE_KUNGFU);
        
SendClientMessage(playeridl_red"FIGHT STYLE Kungfu");
        return 
1;
    }
    if (!
strcmp("/speedboost"cmdtexttrue))
    {
        if(
speeding[playerid]) speeding[playerid] = false; else speeding[playerid] = true;
        if(
speeding[playerid]) return SendClientMessage(playerid,0x33AA33AA,"SpeedBoost Actived!"); else return SendClientMessage(playerid,0x33AA33AA,"SpeedBoost De-Activated!");
    }
    return 
0;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
       if(
PRESSED(KEY_SUBMISSION))
       {
       new 
vehicleid GetPlayerVehicleID(playerid);
       if(
IsPlayerInVehicle(playeridvehicleid))
       {
               
SetVehicleHealth(vehicleid,1000.0);
            
RepairVehicle(GetPlayerVehicleID(playerid));
            
PlayerPlaySound(playerid11330.00.00.0);
               
SendClientMessage(playerid,COLOR_YELLOW,"Vehicle Repaired");
       }
}
       if(
PRESSED(KEY_ACTION))
       {
       if(
IsPlayerNotInVehicle(playerid))
       {
       
SendClientMessage(playerid,COLOR_YELLOW,"Faour: no hack No Cheat im hide");
       }
    }
       if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] && (newkeys KEY_ACTION || newkeys KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
       if (
newkeys && GetPlayerState(playerid)-&& speeding[playerid]) return BoostVeh(GetPlayerVehicleID(playerid)); else if (newkeys && GetPlayerState(playerid)-&& speeding[playerid]) JumpVeh(GetPlayerVehicleID(playerid));
       return 
1;
}
BoostVeh(vidFloat:dis 0.3)
{
    new 
Float:T[3];
    
GetVehicleVelocity(vidT[0], T[1], T[2]);
    
SetVehicleVelocity(vidT[0], T[1], floatadd(T[2],dis));
    
SetVehicleHealth(vid,floatpower(1500.84,16));
    return 
1;
}
JumpVeh(vidFloat:dis 0.24)
{
    new 
Float:T[4];
    
GetVehicleVelocity(vidT[0], T[1], T[2]);
    
GetVehicleZAngle(vidT[3]);
    
SetVehicleVelocity(vid,floatadd(T[0],floatmul(dis,floatsin(-T[3],degrees))), floatadd(T[1],floatmul(dis,floatcos(-T[3],degrees))), T[2]);
    
SetVehicleHealth(vid,floatpower(1500.84,16));
    return 
1;


type /commands to see all commands
Reply
#2

good for stunt GM
Reply
#3

not bad sir
Reply
#4

any way thxx for comment
Reply
#5

Pretty simple :P
Cool.
Reply
#6

thxx
Reply
#7

niceeeeeeeee !!
Reply
#8

thxxxxxx
Reply
#9

What the HELL is this? seriously, this is bullcrap,peace man
Reply
#10

its command for stunt game mode Ex: speed boost and car fix textdraw nice to be usefull
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)