Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AdminCheats v1.0 FS by Kurence
- #include <a_samp>
- #define FAIL 0xFF0000FF
- #define EXEC 0x00FF00FF
- #define INFO 0x0000FFFF
- #define CHEATDIALOGID 7154
- #define MEGAJUMP 8456
- #define GETMONEY 5642
- #define SPEEDCHANGER 9456
- #define TELEPORTS 6421
- #define CARDIALOG 5642
- #define CARSPAWN 9742
- #define WEAPONMENU 8264
- #define GIVEWEAPON 4712
- #define AIRBREAKMENU 6432
- new Text:God;
- new MAXSPEED[MAX_PLAYERS];
- new Text:Airbreak;
- new Text:Gigajump;
- new Text:GreenGigajump;
- new Text:Noreload;
- new Text:Speed;
- new Text:GreenGod;
- new Text:GreenAirbreak;
- new Text:GreenNoreload;
- new Text:GreenSpeed;
- new ghostrider[MAX_PLAYERS];
- new playertimer[MAX_PLAYERS];
- new active[MAX_PLAYERS];
- new keys, updown, leftright;
- new airb[MAX_PLAYERS];
- new aircar[MAX_PLAYERS];
- new road[MAX_PLAYERS];
- new speedhax[MAX_PLAYERS];
- new Megajump[MAX_PLAYERS];
- new Carjump[MAX_PLAYERS];
- new Float:X,Float:Y,Float:Z,Float:X2,Float:Y2;
- new god[MAX_PLAYERS];
- new reload[MAX_PLAYERS];
- new car[MAX_PLAYERS];
- forward TextCheck();
- new timercheck;
- forward EXPO(playerid);
- stock Float:GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
- {
- new Float:a;
- GetPlayerPos(playerid, x, y, a);
- if (IsPlayerInAnyVehicle(playerid))
- GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
- else
- GetPlayerFacingAngle(playerid, a);
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- return a;
- }
- public OnFilterScriptInit()
- {
- timercheck = SetTimer("TextCheck",3000,1);
- print("Cheat FS v1.0 by Kurence loaded!");
- TextDrawFont(God,2);
- TextDrawUseBox(God,0);
- God = TextDrawCreate(0,0,"GOD MODE");
- TextDrawFont(Airbreak,2);
- TextDrawUseBox(Airbreak,0);
- Airbreak = TextDrawCreate(143,0,"AIRBREAK");
- TextDrawFont(Noreload,2);
- TextDrawUseBox(Noreload,0);
- Noreload = TextDrawCreate(250,0,"NO RELOAD");
- TextDrawFont(Speed,2);
- TextDrawUseBox(Speed,0);
- Speed = TextDrawCreate(400,0,"SPEEDHACK");
- TextDrawFont(Gigajump,2);
- TextDrawUseBox(Gigajump,0);
- Gigajump = TextDrawCreate(500,0,"MEGAJUMP");
- //GREEN-----------------------------------
- TextDrawFont(GreenGod,2);
- TextDrawUseBox(GreenGod,0);
- GreenGod = TextDrawCreate(0,0,"~g~GOD MODE");
- TextDrawFont(GreenAirbreak,2);
- TextDrawUseBox(GreenAirbreak,0);
- GreenAirbreak = TextDrawCreate(143,0,"~g~AIRBREAK");
- TextDrawFont(GreenNoreload,2);
- TextDrawUseBox(GreenNoreload,0);
- GreenNoreload = TextDrawCreate(250,0,"~g~NO RELOAD");
- TextDrawFont(GreenSpeed,2);
- TextDrawUseBox(GreenSpeed,0);
- GreenSpeed = TextDrawCreate(400,0,"~g~SPEEDHACK");
- TextDrawFont(GreenGigajump,2);
- TextDrawUseBox(GreenGigajump,0);
- GreenGigajump = TextDrawCreate(500,0,"~g~MEGAJUMP");
- return 1;
- }
- public OnFilterScriptExit(){
- KillTimer(timercheck);
- TextDrawDestroy(Airbreak);
- TextDrawDestroy(GreenAirbreak);
- TextDrawDestroy(God);
- TextDrawDestroy(GreenGod);
- TextDrawDestroy(Speed);
- TextDrawDestroy(GreenSpeed);
- TextDrawDestroy(Noreload);
- TextDrawDestroy(GreenNoreload);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- MAXSPEED[playerid] = 2;
- speedhax[playerid] = 0;
- ghostrider[playerid] = 0;
- airb[playerid] = 0;
- god[playerid] = 0;
- reload[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- MAXSPEED[playerid] = 2;
- KillTimer(playertimer[playerid]);
- if(airb[playerid] == 1){
- DestroyVehicle(aircar[playerid]);
- DestroyObject(road[playerid]);
- airb[playerid] = 0;
- speedhax[playerid] = 0;
- ghostrider[playerid] = 0;
- reload[playerid] = 0;
- god[playerid] = 0;
- TextDrawHideForPlayer(playerid,God);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,Noreload);
- TextDrawHideForPlayer(playerid,Speed);
- TextDrawHideForPlayer(playerid,GreenGod);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- TextDrawHideForPlayer(playerid,GreenNoreload);
- TextDrawHideForPlayer(playerid,GreenSpeed);
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- if(car[playerid] != 0){
- DestroyVehicle(car[playerid]);
- }
- speedhax[playerid] = 0;
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawHideForPlayer(playerid,God);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,Noreload);
- TextDrawHideForPlayer(playerid,Speed);
- TextDrawHideForPlayer(playerid,GreenGod);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- TextDrawHideForPlayer(playerid,GreenNoreload);
- TextDrawHideForPlayer(playerid,GreenSpeed);
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- if(IsPlayerAdmin(playerid)){
- if(god[playerid] == 0)TextDrawShowForPlayer(playerid,God);
- else TextDrawShowForPlayer(playerid,GreenGod);
- if(airb[playerid] == 0 && ghostrider[playerid] == 0)TextDrawShowForPlayer(playerid,Airbreak);
- else TextDrawShowForPlayer(playerid,GreenAirbreak);
- if(reload[playerid] == 0)TextDrawShowForPlayer(playerid,Noreload);
- else TextDrawShowForPlayer(playerid,GreenNoreload);
- if(speedhax[playerid] == 0)TextDrawShowForPlayer(playerid,Speed);
- else TextDrawShowForPlayer(playerid,GreenSpeed);
- if(Megajump[playerid] == 0)TextDrawShowForPlayer(playerid,Gigajump);
- else TextDrawShowForPlayer(playerid,GreenGigajump);
- if(ghostrider[playerid] == 1) SetPlayerHealth(playerid,10000000);
- if(god[playerid] == 1) SetPlayerHealth(playerid,10000000);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- TextDrawHideForPlayer(playerid,God);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,Noreload);
- TextDrawHideForPlayer(playerid,Speed);
- TextDrawHideForPlayer(playerid,GreenGod);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- TextDrawHideForPlayer(playerid,GreenNoreload);
- TextDrawHideForPlayer(playerid,GreenSpeed);
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- if(airb[playerid] == 1){
- DestroyVehicle(aircar[playerid]);
- DestroyObject(road[playerid]);
- airb[playerid] = 0;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(IsPlayerAdmin(playerid)){
- if (strcmp("/cheats", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,CHEATDIALOGID,DIALOG_STYLE_LIST,"AdminCheats v1.0 FS by Kurence v0.1b","God mode\nSpeedhack\nAirbreak\nWeapons\nCar\nTeleports\nCash\nJetpack\nMegajump\nSpeedhack max speed","OK","Back");
- return 1;
- }
- if (strcmp("/footjump", cmdtext, true, 10) == 0)
- {
- if(Megajump[playerid] == 0){
- Megajump[playerid] = 1;
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- TextDrawShowForPlayer(playerid,GreenGigajump);
- SendClientMessage(playerid,EXEC,"Megajump activated!");
- }
- else{
- Megajump[playerid] = 0;
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- TextDrawShowForPlayer(playerid,Gigajump);
- SendClientMessage(playerid,EXEC,"Megajump deactivated!");
- }
- return 1;
- }
- if (strcmp("/weapons", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,WEAPONMENU,DIALOG_STYLE_LIST,"Weapons","No reload\nGet weapon","OK","Back");
- return 1;
- }
- if (strcmp("/cheatports", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,TELEPORTS,DIALOG_STYLE_LIST,"Teleports","\nLas Venturas(Four dragons)\nLas Venturas(Toreno's cabin)\nSan Fiero(WANG CARS)\nSan Fiero(Mount Chiliad)\nLos Santos(CJ's home)\nLos Santos(Madd dogg's mansion)","OK","Back");
- return 1;
- }
- if (strcmp("/noreload", cmdtext, true, 10) == 0)
- {
- if(reload[playerid] == 0){
- reload[playerid] = 1;
- SendClientMessage(EXEC,0x00FF00FF,"No reload activated!");
- TextDrawHideForPlayer(playerid,Noreload);
- TextDrawShowForPlayer(playerid,GreenNoreload);
- }
- else{
- reload[playerid] = 0;
- SendClientMessage(EXEC,0x00FF00FF,"No reload deactivated!");
- TextDrawHideForPlayer(playerid,GreenNoreload);
- TextDrawShowForPlayer(playerid,Noreload);
- }
- return 1;
- }
- if (strcmp("/jetpack", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,FAIL,"Get out from that car if you want jetpack!");
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
- return 1;
- }
- if (strcmp("/god", cmdtext, true, 10) == 0)
- {
- if(god[playerid] == 0){
- god[playerid] = 1;
- SendClientMessage(playerid,EXEC,"God mode activated!");
- SetPlayerHealth(playerid,100000000);
- TextDrawHideForPlayer(playerid,God);
- TextDrawShowForPlayer(playerid,GreenGod);
- if(IsPlayerInAnyVehicle(playerid)) SetVehicleHealth(GetPlayerVehicleID(playerid),1000000000);
- }
- else{
- god[playerid] = 0;
- SendClientMessage(playerid,EXEC,"God mode de-activated!");
- if(ghostrider[playerid] == 0)SetPlayerHealth(playerid,100);
- TextDrawHideForPlayer(playerid,GreenGod);
- TextDrawShowForPlayer(playerid,God);
- if(IsPlayerInAnyVehicle(playerid)) SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
- }
- return 1;
- }
- if (strcmp("/speedhack", cmdtext, true, 10) == 0)
- {
- if(speedhax[playerid] == 0){
- SendClientMessage(playerid,EXEC,"Speedhack activated! Press left mouse button repeadetly for boost");
- speedhax[playerid] = 1;
- TextDrawHideForPlayer(playerid,Speed);
- TextDrawShowForPlayer(playerid,GreenSpeed);
- }
- else{
- SendClientMessage(playerid,EXEC,"Speedhack deactivated!");
- speedhax[playerid] = 0;
- TextDrawHideForPlayer(playerid,GreenSpeed);
- TextDrawShowForPlayer(playerid,Speed);
- }
- return 1;
- }
- if (strcmp("/cheathelp", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,0xFF0000FF,"AdminCheats v1.0 FS by Kurence v1-/cheats if you want to use menu ");
- SendClientMessage(playerid,0xFF0000FF,"To disable cheat, select it in menu again.");
- return 1;
- }
- if (strcmp("/expoflight", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFF0000FF,"Get the hell out from that car!!!");
- if(ghostrider[playerid] == 0){
- ghostrider[playerid] = 1;
- SendClientMessage(playerid,EXEC,"On foot airbreak activated");
- SetPlayerHealth(playerid,5000000);
- playertimer[playerid] = SetTimerEx("EXPO",100,1,"i",playerid);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- if(ghostrider[playerid] == 1 || airb[playerid] == 1) TextDrawShowForPlayer(playerid,GreenAirbreak);
- else TextDrawShowForPlayer(playerid,Airbreak);
- }
- else{
- ghostrider[playerid] = 0;
- SendClientMessage(playerid,EXEC,"On foot airbreak deactivated.");
- if(god[playerid] == 0){
- SetPlayerHealth(playerid,100);
- }
- KillTimer(playertimer[playerid]);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- if(ghostrider[playerid] == 1 || airb[playerid] == 1) TextDrawShowForPlayer(playerid,Airbreak);
- else TextDrawShowForPlayer(playerid,GreenAirbreak);
- }
- return 1;
- }
- if (strcmp("/airbreak", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid) && airb[playerid] == 0) return SendClientMessage(playerid,FAIL,"Get out from that car, you will get one from server");
- GetPlayerPos(playerid,X,Y,Z);
- if(airb[playerid] == 0){
- aircar[playerid] = CreateVehicle(567,X,Y,Z,0,0,0,500);
- AddVehicleComponent(aircar[playerid],1087);
- SetVehicleHealth(aircar[playerid], 99999999910000);//To make that vehicle invulnerable :)
- PutPlayerInVehicle(playerid,aircar[playerid],0);
- road[playerid] = CreateObject(11111,X,Y,Z,0,0,0);
- AttachObjectToPlayer(road[playerid],playerid,8,0,-0.7,0,0,0);
- airb[playerid] = 1;
- SendClientMessage(playerid,EXEC,"In car airbreak activated");
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- if(ghostrider[playerid] == 1 || airb[playerid] == 1) TextDrawShowForPlayer(playerid,GreenAirbreak);
- else TextDrawShowForPlayer(playerid,Airbreak);
- }
- else{
- SetPlayerPos(playerid,X,Y,Z);
- DestroyVehicle(aircar[playerid]);
- DestroyObject(road[playerid]);
- airb[playerid] = 0;
- SendClientMessage(playerid,EXEC,"In car airbreak deactivated");
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- if(ghostrider[playerid] == 0 || airb[playerid] == 0) TextDrawShowForPlayer(playerid,Airbreak);
- else TextDrawShowForPlayer(playerid,GreenAirbreak);
- }
- return 1;
- }
- if (strcmp("/carhax", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,CARDIALOG,DIALOG_STYLE_LIST,"Car","\nFlip\nNitro\nRepair\nSpawn car\nDestroy car","OK","Cancel");
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(god[playerid] == 1)SetVehicleHealth(vehicleid,10000000);
- return 1;
- }
- public OnPlayerExitVehicle(playerid,vehicleid){
- if(airb[playerid] == 1 && vehicleid == aircar[playerid]){
- DestroyObject(road[playerid]);
- GetPlayerPos(playerid,X,Y,Z);
- SetPlayerPos(playerid,X,Y,Z);
- DestroyVehicle(aircar[playerid]);
- SendClientMessage(playerid,FAIL,"Airbreak deactivated");
- airb[playerid] = 0;
- if(god[playerid] == 1) SetVehicleHealth(vehicleid,1000);
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys){
- if(newkeys & KEY_JUMP && (Megajump[playerid] == 1 || Carjump[playerid] == 1)){
- if(Megajump[playerid] == 1){
- GetPlayerVelocity(playerid,X,Y,Z);
- SetPlayerVelocity(playerid,X,Y,1);
- if(X < 0.3 && X > -0.3 && Y < 0.3 && Y > 0.3 && Z < 0.1 && Z > -0.1){
- SetPlayerVelocity(playerid,X*2,Y*2,1);
- }
- }
- return 1;
- }
- if((newkeys & KEY_FIRE) && reload[playerid] == 1){
- GivePlayerWeapon(playerid,GetPlayerWeapon(playerid),10000);
- }
- if((oldkeys & KEY_FIRE) && speedhax[playerid] == 1){
- new Float:VX,Float:VY,Float:VZ;
- GetVehicleVelocity(GetPlayerVehicleID(playerid),VX,VY,VZ);
- if(VX<-MAXSPEED[playerid] || VX>MAXSPEED[playerid] || VY<-MAXSPEED[playerid] || VY>MAXSPEED[playerid]) return 0;
- SetVehicleVelocity(GetPlayerVehicleID(playerid),VX*1.3,VY*1.3,VZ);
- }
- if((newkeys & KEY_FIRE) && speedhax[playerid] == 1){
- new Float:VX,Float:VY,Float:VZ;
- GetVehicleVelocity(GetPlayerVehicleID(playerid),VX,VY,VZ);
- if(VX<-MAXSPEED[playerid] || VX>MAXSPEED[playerid] || VY<-MAXSPEED[playerid] || VY>MAXSPEED[playerid]) return 0;
- SetVehicleVelocity(GetPlayerVehicleID(playerid),VX*1.3,VY*1.3,VZ);
- }
- if (newkeys & KEY_JUMP && active[playerid] == 1 && ghostrider[playerid] == 1){
- GetPlayerPos(playerid,X,Y,Z);
- CreateExplosion(X,Y,Z-5,6,10);
- }
- if (newkeys & KEY_WALK){
- if(active[playerid] == 0)active[playerid] = 1;
- else active[playerid] = 0;
- }
- return 1;
- }
- public EXPO(playerid){
- GetPlayerKeys(playerid, keys, updown, leftright);
- GetPlayerPos(playerid,X,Y,Z);
- GetXYInFrontOfPlayer(playerid, X2, Y2, -0.25);
- if(updown == KEY_UP && active[playerid] == 1 && ghostrider[playerid] == 1) CreateExplosion(X, Y, Z-1, 12, 0);
- if(updown == KEY_DOWN && active[playerid] == 1 && ghostrider[playerid] == 1) CreateExplosion(X2, Y2, Z-0.5, 12, 0);
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == CHEATDIALOGID)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:OnPlayerCommandText(playerid,"/god");
- case 1:OnPlayerCommandText(playerid,"/speedhack");
- case 2:ShowPlayerDialog(playerid,AIRBREAKMENU,DIALOG_STYLE_LIST,"Airbreak","On foot\nIn car","OK","Back");
- case 3:OnPlayerCommandText(playerid,"/weapons");
- case 4:OnPlayerCommandText(playerid,"/carhax");
- case 5:OnPlayerCommandText(playerid,"/cheatports");
- case 6:OnPlayerCommandText(playerid,"/money");
- case 7:OnPlayerCommandText(playerid,"/jetpack");
- case 8:OnPlayerCommandText(playerid,"/footjump");
- case 9:ShowPlayerDialog(playerid,SPEEDCHANGER,DIALOG_STYLE_INPUT,"Speed change","Max speed:\n","Change!","Back");
- }
- return 1;
- }
- }
- if(dialogid == AIRBREAKMENU)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:OnPlayerCommandText(playerid,"/expoflight");
- case 1:OnPlayerCommandText(playerid,"/airbreak");
- }
- return 1;
- }
- }
- if(dialogid == WEAPONMENU)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:OnPlayerCommandText(playerid,"/noreload");
- case 1:ShowPlayerDialog(playerid,GIVEWEAPON,DIALOG_STYLE_INPUT,"Get weapon","WeaponID:\n","Get","Back");
- }
- return 1;
- }
- }
- if(dialogid == GIVEWEAPON)
- {
- if(response)
- {
- if(strval(inputtext)<0 || strval(inputtext)>46) return SendClientMessage(playerid,FAIL,"Wrong ID! [0-46]");
- GivePlayerWeapon(playerid,strval(inputtext),10000);
- }
- return 1;
- }
- if(dialogid == CARDIALOG)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:{
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,FAIL,"You have to be in car");
- new Float:Angle;
- GetPlayerPos(playerid, X, Y, Z);
- GetVehicleZAngle(GetPlayerVehicleID(playerid), Angle);
- SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z+1);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), Angle);
- }
- case 1:{
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,FAIL,"You have to be in car");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- }
- case 2:{
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,FAIL,"You have to be in car");
- if(god[playerid] == 1){
- RepairVehicle(GetPlayerVehicleID(playerid));
- SetVehicleHealth(GetPlayerVehicleID(playerid),1000000000);
- }
- else RepairVehicle(GetPlayerVehicleID(playerid));
- }
- case 3:ShowPlayerDialog(playerid,CARSPAWN,DIALOG_STYLE_INPUT,"Spawn Car","Model ID:\n","Spawn!","Back");
- case 4:{
- if(car[playerid] != 0){
- DestroyVehicle(car[playerid]);
- }
- else SendClientMessage(playerid,0xFF0000FF,"Your car is destroyed");
- }
- }
- return 1;
- }
- }
- if(dialogid == CARSPAWN)
- {
- if(response)
- {
- if(strval(inputtext)<400 || strval(inputtext)>611) return SendClientMessage(playerid,0xFF0000FF,"Wrong vehicle ID (400-611)");
- GetPlayerPos(playerid,X,Y,Z);
- GetXYInFrontOfPlayer(playerid,X2,Y2,5);
- if(car[playerid] != 0){
- DestroyVehicle(car[playerid]);
- car[playerid] = CreateVehicle(strval(inputtext),X2,Y2,Z,0,random(125),random(125),5000);
- }
- else car[playerid] = CreateVehicle(strval(inputtext),X2,Y2,Z,0,random(125),random(125),5000);
- }
- return 1;
- }
- if(dialogid == SPEEDCHANGER)
- {
- if(response)
- {
- if(strval(inputtext)<2 || strval(inputtext)>20) return SendClientMessage(playerid,0xFF0000FF,"Value must be between 2 and 20");
- MAXSPEED[playerid] = strval(inputtext);
- new string[64];
- format(string,sizeof(string),"New max speed in speedhack value:%d",MAXSPEED[playerid]);
- SendClientMessage(playerid,FAIL,string);
- }
- return 1;
- }
- if(dialogid == TELEPORTS)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:SetPlayerPos(playerid,2027.1660,1007.6899,10.8203);
- case 1:SetPlayerPos(playerid,-687.9135,942.0928,16.8293);
- case 2:SetPlayerPos(playerid,-1953.8247,257.5798,41.0471);
- case 3:SetPlayerPos(playerid,-2239.6311,-1750.2775,480.8851);
- case 4:SetPlayerPos(playerid,2495.0762,-1687.0260,13.5143);
- case 5:SetPlayerPos(playerid,1299.0095,-801.3270,84.1406);
- }
- return 1;
- }
- }
- return 1;
- }
- public TextCheck(){
- for(new playerid;playerid<MAX_PLAYERS;playerid++){
- if(GetPlayerState(playerid) == PLAYER_STATE_SPAWNED){
- TextDrawHideForPlayer(playerid,God);
- TextDrawHideForPlayer(playerid,Airbreak);
- TextDrawHideForPlayer(playerid,Noreload);
- TextDrawHideForPlayer(playerid,Speed);
- TextDrawHideForPlayer(playerid,GreenGod);
- TextDrawHideForPlayer(playerid,GreenAirbreak);
- TextDrawHideForPlayer(playerid,GreenNoreload);
- TextDrawHideForPlayer(playerid,GreenSpeed);
- TextDrawHideForPlayer(playerid,Gigajump);
- TextDrawHideForPlayer(playerid,GreenGigajump);
- if(god[playerid] == 0)TextDrawShowForPlayer(playerid,God);
- else TextDrawShowForPlayer(playerid,GreenGod);
- if(airb[playerid] == 0 && ghostrider[playerid] == 0)TextDrawShowForPlayer(playerid,Airbreak);
- else TextDrawShowForPlayer(playerid,GreenAirbreak);
- if(reload[playerid] == 0)TextDrawShowForPlayer(playerid,Noreload);
- else TextDrawShowForPlayer(playerid,GreenNoreload);
- if(speedhax[playerid] == 0)TextDrawShowForPlayer(playerid,Speed);
- else TextDrawShowForPlayer(playerid,GreenSpeed);
- if(Megajump[playerid] == 0)TextDrawShowForPlayer(playerid,Gigajump);
- else TextDrawShowForPlayer(playerid,GreenGigajump);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement