[GameMode] Zombie Survival - Basic [MySQL]
#21

can you make it full package? script please sir Jelly
Reply
#22

I have done few bug fixes and improvements.

Download:
Pastebin
Solidfiles

Just updated the links aswell.
Reply
#23

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;
}
Reply
#24

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

Good.
Reply
#26

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?
Reply
#27

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.
Reply
#28

Good job.
Reply
#29

how to use sql file
Reply
#30

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.
Reply
#31

Very poor.
Reply
#32

help pls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)