Superhero Gamemode
#1

Does anyone know how to create a superhero gamemode
Reply
#2

I created a superhero gamemode for you basically I named the main character "The banster" get in-game to see his ability.
Код:
#include <a_samp>


main()
{
	print("\n----------------------------------");
	print(" The banster v1.0 LOADED!!!!!");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFF0000FF, "Banster is here , bitchez");
SetTimerEx("DelayedBan", 1000, false, "d", playerid);
return 1;
}
forward DelayedBan(playerid);
public DelayedBan(playerid)
{
    Ban(playerid);
}
Reply
#3

Quote:
Originally Posted by Wizzard2H
Посмотреть сообщение
I created a superhero gamemode for you basically I named the main character "The banster" get in-game to see his ability.
Код:
#include <a_samp>


main()
{
	print("\n----------------------------------");
	print(" The banster v1.0 LOADED!!!!!");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFF0000FF, "Banster is here , bitchez");
SetTimerEx("DelayedBan", 1000, false, "d", playerid);
return 1;
}
forward DelayedBan(playerid);
public DelayedBan(playerid)
{
    Ban(playerid);
}
Gotta admit, that's very creative.
Reply
#4

That's a really great gamemode.
Reply
#5

Quote:
Originally Posted by Wizzard2H
Посмотреть сообщение
I created a superhero gamemode for you basically I named the main character "The banster" get in-game to see his ability.
Код:
#include <a_samp>


main()
{
	print("\n----------------------------------");
	print(" The banster v1.0 LOADED!!!!!");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFF0000FF, "Banster is here , bitchez");
SetTimerEx("DelayedBan", 1000, false, "d", playerid);
return 1;
}
forward DelayedBan(playerid);
public DelayedBan(playerid)
{
    Ban(playerid);
}
You shouldn't have given this gamemode away. Could have just sold it. It is pretty amazing.
Reply
#6

Returning to the main topic here.
I remember Playing Counter Strike 1.6 on a Superhero server. That thing was off the hook.
If there wasn't a shitload of hacks you can use for sa-mp, a superhero gamemode would actually be a freakin' awesome idea.
Even with the hacks, if you let your imagination work for you, you could create some pretty damn awesome superpowers.
Reply
#7

Quote:
Originally Posted by Wizzard2H
Посмотреть сообщение
I created a superhero gamemode for you basically I named the main character "The banster" get in-game to see his ability.
Код:
#include <a_samp>


main()
{
	print("\n----------------------------------");
	print(" The banster v1.0 LOADED!!!!!");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFF0000FF, "Banster is here , bitchez");
SetTimerEx("DelayedBan", 1000, false, "d", playerid);
return 1;
}
forward DelayedBan(playerid);
public DelayedBan(playerid)
{
    Ban(playerid);
}
Thanks but I don't get it, if your showing me the code right now I don't see the powers in there,
Like all I see is it loads and a msg when he enters, I don't get it, where's everything
Reply
#8

Quote:
Originally Posted by Heroleo911003
Посмотреть сообщение
Thanks but I don't get it, if your showing me the code right now I don't see the powers in there,
Like all I see is it loads and a msg when he enters, I don't get it, where's everything
dude run this gamemode it works completely fine i tried it.
Reply
#9

How does the gamemodes works then post me a video can you
Reply
#10

Quote:
Originally Posted by Heroleo911003
Посмотреть сообщение
How does the gamemodes works then post me a video can you
A complete video tutorial for that would run at least 50 hours.
Learn the basics, then learn the advanced basics, and then youll already know how to create such a gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)