SA-MP Forums Archive
[GameMode] Zombie Survival - Basic [MySQL] - 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] Zombie Survival - Basic [MySQL] (/showthread.php?tid=620604)

Pages: 1 2


Re: Zombie Survival - Basic [MySQL] - PrinceKumar - 06.11.2016

can you make it full package? script please sir Jelly


Re: Zombie Survival - Basic [MySQL] - Jelly23 - 17.11.2016

I have done few bug fixes and improvements.

Download:
Pastebin
Solidfiles

Just updated the links aswell.


Re: Zombie Survival - Basic [MySQL] - Stones - 11.05.2017

Nothing special just thought i'd drop these four commands in here that i made for this.

Код:
CMD:skip(playerid, params[])
{
    if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
    Duration = 5;
    format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has skipped this map", GetName(playerid));
    SendClientMessageToAll(-1, global);
    return 1;
}
CMD:more(playerid, params[])
{
    if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
    Duration = 200;
    format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has extended thismap", GetName(playerid));
    SendClientMessageToAll(-1, global);
    return 1;
}
CMD:makehuman(playerid, params[])
{
	if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
	new id, target[50];
	if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makehuman id]");
	if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online.");
	SetPlayerHuman(playerid);
    format(global, sizeof (global), "{EE0020}[SERVER] Admin %s has set %s to Human", GetName(playerid), GetName(id));
    SendClientMessageToAll(0xAA3333AA, global);
    UpdateTeams();
    return 1;
}

CMD:makezombie(playerid, params[])
{
	if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
	new id, target[50];
	if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makezombie id");
	if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online.");
	SetPlayerZombie(playerid);
    format(global, sizeof global, "{EE0020}[SERVER] Admin %s has set %s to Zombie", GetName(playerid), GetName(id));
    SendClientMessageToAll(0xAA3333AA, global);
    UpdateTeams();
    return 1;
}



Re: Zombie Survival - Basic [MySQL] - hossa - 12.05.2017

@Jelly23
You should make a github for this, I think some people might be interested into developing this for future references.


Re: Zombie Survival - Basic [MySQL] - coool - 15.05.2017

Good.


Re: Zombie Survival - Basic [MySQL] - Copper66 - 26.10.2017

Can you help me with this mysql error?



[22:13:55] [ERROR] mysql_format - invalid connection handle (id: 0)
[22:13:55] [ERROR] mysql_tquery - invalid connection handle (id: 0)
[22:13:55] [DEBUG] mysql_connect - host: "localhost", user: "root", database: "zombie", password: "****", port: 3306, autoreconnect: true, pool_size: 2
[22:13:55] [DEBUG] CMySQLHandle::Create - creating new connection..
[22:13:55] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
[22:13:55] [DEBUG] CMySQLHandle::Create - connection created (id: 1)
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [DEBUG] mysql_errno - connection: 1
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'


I am trying to run gamemode on windows with wampserver but this mysql error is making things difficult help me please!and where do I put the tables of maps, bans and players?


Re: Zombie Survival - Basic [MySQL] - GrayInot - 26.10.2017

The includes/plugins section in the script is the reason i can't pawno the script it keeps error any help? im just a roockie.


Re: Zombie Survival - Basic [MySQL] - Younes44 - 27.10.2017

Good job.


Re: Zombie Survival - Basic [MySQL] - oppo1234 - 08.01.2018

how to use sql file


Re: Zombie Survival - Basic [MySQL] - BrunRoxy - 22.04.2018

Someone help I get this error when I compile it,

F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(154) : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(19 : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(232) : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(22) : error 017: undefined symbol "CreatePlayerTextDraw"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(22) : warning 213: tag mismatch
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(23) : error 017: undefined symbol "PlayerTextDrawLetterSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(24) : error 017: undefined symbol "PlayerTextDrawAlignment"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(25) : error 017: undefined symbol "PlayerTextDrawColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(26) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(27) : error 017: undefined symbol "PlayerTextDrawSetOutline"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(2 : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(29) : error 017: undefined symbol "PlayerTextDrawFont"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(30) : error 017: undefined symbol "PlayerTextDrawSetProportional"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(31) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(33) : error 017: undefined symbol "CreatePlayerTextDraw"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(33) : warning 213: tag mismatch
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(34) : error 017: undefined symbol "PlayerTextDrawLetterSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(35) : error 017: undefined symbol "PlayerTextDrawTextSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(36) : error 017: undefined symbol "PlayerTextDrawAlignment"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(37) : error 017: undefined symbol "PlayerTextDrawColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(3 : error 017: undefined symbol "PlayerTextDrawUseBox"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(39) : error 017: undefined symbol "PlayerTextDrawBoxColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(40) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(41) : error 017: undefined symbol "PlayerTextDrawSetOutline"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(42) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(43) : error 017: undefined symbol "PlayerTextDrawFont"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(44) : error 017: undefined symbol "PlayerTextDrawSetProportional"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(45) : error 017: undefined symbol "PlayerTextDrawSetShadow"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.


Please help.


Re: Zombie Survival - Basic [MySQL] - PowerMwK - 22.04.2018

Very poor.


Re: Zombie Survival - Basic [MySQL] - BrunRoxy - 23.04.2018

help pls