#1

I'm currently trying to open the server with the mode I have , But I havn't classes.inc so its ofcourse give me a warning/errors , ANd I can't find it
Can someone give me it or someone change my code to another include that I can have easily?

Here's the code
Код:
public OnPlayerRequestClass(playerid, classid)
{
 	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 120);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
	new string[1500];
	if(PlayerInfo[playerid][Banned] == 1)
    {
        format(string, 1500,"{FF0000}You are banned from the server\n\nBanning Reason: '%s'\nIf you think this is a mistake, please make\na ban appeal on our forums.\n\nwww.majestic-gaming.com/countersamp/", PlayerInfo[playerid][BanReason]);
		ShowPlayerDialog(playerid,6897,DIALOG_STYLE_MSGBOX,"{FF0000}Ban Alert", string,"OK","");
        PKick(playerid);
        format(string,sizeof(string),"{FF0000}[SYSTEM KICK] %s is banned and kicked (Ban Reason: %s)",GetName(playerid), PlayerInfo[playerid][BanReason]);
		SAM(string);
    }
	switch(classid)
	{
	    case 0, 1, 2, 3:
	    {
      		GameTextForPlayer(playerid, "~b~Counter Terrorist", 5000, 5);
      		SetPlayerTeam(playerid, 1);
			PlayerInfo[playerid][pClass] = 1;
			SetPlayerColor(playerid, 0x002FEBFF);
		}
		case 4, 5, 6, 7:
		{
      		GameTextForPlayer(playerid, "~r~Terrorist", 5000, 5);
      		SetPlayerTeam(playerid, 2);
			PlayerInfo[playerid][pClass] = 2;
			SetPlayerColor(playerid, 0xD11B1BFF);
		}
	}
	return 1;
}
Quote:

public OnPlayerSpawn(playerid)
{
// new string[128];
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);


SetTimerEx("SpawnProtection", 7500, false, "i", playerid);
if(PlayerInfo[playerid][pLogged] == 0)
{
if(PlayerInfo[playerid][pClass] == 1)
{
// Members[1]++;
PlayerInfo[playerid][pLogged] = 1;
}
else if(PlayerInfo[playerid][pClass] == 2)
{
// Members[2]++;
HasBomb[playerid] = 1;
PlayerInfo[playerid][pLogged] = 1;
}
}
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 25);
GivePlayerWeapon(playerid, 31, 250);

IsAlive[playerid] = 1;
SetPlayerInterior(playerid, 0);
cS_Hide(playerid);
SpawnProtected[playerid] = 1;
if(PlayerInfo[playerid][pCustomSkin] == 1)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkins]);
}
MapChangeForPlayer(playerid);
MapChangeForPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_RED, "You are spawn-protected for 7.5 seconds. You can use /shop and /vipmenu now.");
SetPlayerHealth(playerid, 100000);
return 1;

and if you can give me the classes.inc then give me it please , thank you

Код:
#include <classes>
Reply
#2

REP+ for whoever gives me the include to tell me the another code with another include
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)