SA-MP Forums Archive
[GameMode] Attack-Defend (A/D | DM) With .pwn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Attack-Defend (A/D | DM) With .pwn (/showthread.php?tid=427918)

Pages: 1 2 3


Re: Attack-Defend (A/D | DM) With .pwn - DJTunes - 20.06.2013

Nice job.


Re: Attack-Defend (A/D | DM) With .pwn - SwisherSweet - 20.06.2013

pretty coo.


Re: Attack-Defend (A/D | DM) With .pwn - denom - 20.06.2013

Awesome GM its really cool... +Repped for you! its really awesome


Re: Attack-Defend (A/D | DM) With .pwn - Niko_boy - 20.06.2013

this gm is suck , dont use it to save y'r asses

jk its awesome , i had made mine own version using this ones old versions , and seem awesome to me :F

ftw 062_


Re: Attack-Defend (A/D | DM) With .pwn - TeK062 - 03.07.2013

Thanks everyone

I uploaded the latest version of the GM with most bugs fixed and improvements added
Also added Niko_boy's intro textdraw


Re: Attack-Defend (A/D | DM) With .pwn - Knight_Rider - 05.07.2013

Quote:
Originally Posted by TeK062
View Post
Thanks everyone

I uploaded the latest version of the GM with most bugs fixed and improvements added
Also added Niko_boy's intro textdraw
Wow Just now?
btw links are removed huh?


Re: Attack-Defend (A/D | DM) With .pwn - TeK062 - 07.07.2013

I'll post new links later


Re: Attack-Defend (A/D | DM) With .pwn - kN1GhT - 07.07.2013

Waiting for new script ...
U r just too pro xD


Re: Attack-Defend (A/D | DM) With .pwn - Rapha3L - 07.07.2013

062 put new links soon please )


Re: Attack-Defend (A/D | DM) With .pwn - MiGu3X - 08.07.2013

I guess... This gm was started by 062_ 2-4 months ago, not 6 lol...

But yea well done you released on samp forum instead of [U] webpage. Keep this work man gj.


Re: Attack-Defend (A/D | DM) With .pwn - BoU3A - 11.07.2013

so tell me pls how to download it i can open and see and cant download pls tell me


Re: Attack-Defend (A/D | DM) With .pwn - Rohlik - 11.07.2013

Nice Work ..


Re: Attack-Defend (A/D | DM) With .pwn - mcpookiee - 12.07.2013

Quote:
Originally Posted by TeK062
View Post
Why?
i cant download some files,it wont to open.Could you re-upload it on mediafire or sendspace or whatever?


Re: Attack-Defend (A/D | DM) With .pwn - TeK062 - 13.07.2013

Right click on the file u want to download and click on save as, also if the link is not working try to find the correct link from sixtytiger.com


Re: Attack-Defend (A/D | DM) With .pwn - mcpookiee - 14.07.2013

still cant download


Re: Attack-Defend (A/D | DM) With .pwn - Vaishnav - 14.07.2013

please help I can't download it

please upload it on mediafire


Re: Attack-Defend (A/D | DM) With .pwn - MA_proking - 14.07.2013

Code:
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15434) : error 025: function heading differs from prototype
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15435) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This error coming everytime. Any Solution?

pawn Code:
#define ANTICHEAT       1   //If you want Whitetiger's Anti-Cheat, put 1 else 0.
#define PLUGINS         1   //If you want to use plugins then put 1 else leave 0.
#define INTROTEXT       1   //Adds intro textdraw.
#define MYSQL           1   //Use MySQL system
#define STATS           1   //Shows ESL player stats from duels and VERSUS.
#define OBJECTS         1   //Loads extra objects/maps

forward OnPlayerLogin(Result:result, playerid);
public OnPlayerLogin(Result:result, playerid) {

    if(!IsPlayerConnected(playerid)) return 1;

    if(!sql_num_rows(result)) {
        SendClientMessage(playerid,-1,"{FFFFFF}Error: {0099FF}Wrong Password. Please try again.");
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{FFFFFF}Login Dialog","{FFFFFF}Type your password below to log in:","Login","Leave");
        return 1;
    }
    Player[playerid][Level] = sql_get_field_assoc_int(result, "Level");
    Player[playerid][Weather] = sql_get_field_assoc_int(result, "Weather");
    Player[playerid][Time] = sql_get_field_assoc_int(result, "Time");
    Player[playerid][ChatChannel] = sql_get_field_assoc_int(result, "ChatChannel");
    Player[playerid][NetCheck] = sql_get_field_assoc_int(result, "NetCheck");
    Player[playerid][Widescreen] = (sql_get_field_assoc_int(result, "Widescreen") == 0 ? false : true);
    Player[playerid][HitSound] = sql_get_field_assoc_int(result, "HitSound");
    Player[playerid][GetHitSound] = sql_get_field_assoc_int(result, "GetHitSound");


    Player[playerid][Logged] = true;

    new iString[180];
    SendClientMessage(playerid,-1, "You have successfully logged in.");
    format(iString, sizeof(iString), "Level: %d | Weather: %d | Time: %d | Chat Channel: %d | Net Check: %d | HitSound: %d | Get HitSound: %d", Player[playerid][Level], Player[playerid][Weather], Player[playerid][Time], Player[playerid][ChatChannel], Player[playerid][NetCheck], Player[playerid][HitSound], Player[playerid][GetHitSound]);
    SendClientMessage(playerid, -1, iString);
   
    #if INTROTEXT == 0
    if(ESLMode == false) SpawnConnectedPlayer(playerid, 0);
    else {

        ESLHelpDialog(playerid);
    }
    #else
    OnPlayerRequestClass(playerid, 0);
    #endif

    return 1;

}



Re: Attack-Defend (A/D | DM) With .pwn - arititlez - 14.07.2013

Can't download


Re: Attack-Defend (A/D | DM) With .pwn - [ABK]Antonio - 15.07.2013

What's wrong with zip files? Such a pain to manually go and 'save link as' for every include I need to run your mode.

Also, why doesn't it compile if I turn the anti cheat off in the definitions?



EDIT:
Ran the mode with the non plugin version, pretty good mode. Only reason non plugin version was because the sql plugins weren't working properly but it's w/e non plugins still works fine. Nice job!


Re: Attack-Defend (A/D | DM) With .pwn - TeK062 - 16.07.2013

Quote:
Originally Posted by MA_proking
View Post
Code:
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15434) : error 025: function heading differs from prototype
C:\Documents and Settings\PRABHAT ZONE\My Documents\Downloads\attdef.pwn(15435) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This error coming everytime. Any Solution?

pawn Code:
#define ANTICHEAT       1   //If you want Whitetiger's Anti-Cheat, put 1 else 0.
#define PLUGINS         1   //If you want to use plugins then put 1 else leave 0.
#define INTROTEXT       1   //Adds intro textdraw.
#define MYSQL           1   //Use MySQL system
#define STATS           1   //Shows ESL player stats from duels and VERSUS.
#define OBJECTS         1   //Loads extra objects/maps

forward OnPlayerLogin(Result:result, playerid);
public OnPlayerLogin(Result:result, playerid) {

    if(!IsPlayerConnected(playerid)) return 1;

    if(!sql_num_rows(result)) {
        SendClientMessage(playerid,-1,"{FFFFFF}Error: {0099FF}Wrong Password. Please try again.");
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{FFFFFF}Login Dialog","{FFFFFF}Type your password below to log in:","Login","Leave");
        return 1;
    }
    Player[playerid][Level] = sql_get_field_assoc_int(result, "Level");
    Player[playerid][Weather] = sql_get_field_assoc_int(result, "Weather");
    Player[playerid][Time] = sql_get_field_assoc_int(result, "Time");
    Player[playerid][ChatChannel] = sql_get_field_assoc_int(result, "ChatChannel");
    Player[playerid][NetCheck] = sql_get_field_assoc_int(result, "NetCheck");
    Player[playerid][Widescreen] = (sql_get_field_assoc_int(result, "Widescreen") == 0 ? false : true);
    Player[playerid][HitSound] = sql_get_field_assoc_int(result, "HitSound");
    Player[playerid][GetHitSound] = sql_get_field_assoc_int(result, "GetHitSound");


    Player[playerid][Logged] = true;

    new iString[180];
    SendClientMessage(playerid,-1, "You have successfully logged in.");
    format(iString, sizeof(iString), "Level: %d | Weather: %d | Time: %d | Chat Channel: %d | Net Check: %d | HitSound: %d | Get HitSound: %d", Player[playerid][Level], Player[playerid][Weather], Player[playerid][Time], Player[playerid][ChatChannel], Player[playerid][NetCheck], Player[playerid][HitSound], Player[playerid][GetHitSound]);
    SendClientMessage(playerid, -1, iString);
   
    #if INTROTEXT == 0
    if(ESLMode == false) SpawnConnectedPlayer(playerid, 0);
    else {

        ESLHelpDialog(playerid);
    }
    #else
    OnPlayerRequestClass(playerid, 0);
    #endif

    return 1;

}
Put the ANTICHEAT as 0 and then try