vip tag part 2
#1

sorry for creating a new thred but i need ur help please

i did

Код:
new Text3D:VIPS[MAX_PLAYERS];
//under onplayerspawn

26852:  if(PlayerInfo[playerid][Level] == 1 || IsPlayerAdmin(playerid)) {
26853:   	VIPS[playerid] = Create3DTextLabel(" V.I.P Member", red, 0.0, 0.0, 0.0, 50.0, 0, 0);
26854:  	Attach3DTextLabelToPlayer(VIPS[playerid], playerid, 0.0, 0.0, 0.0);
26855:   	SetPlayerArmour(playerid,100);
    }
    return 1;
}
Код:
C:\Users\Rajan\Desktop\final server v9 satdm\gamemodes\SATDM_v9.pwn(26852) : warning 225: unreachable code
and the warning the vip tag is not comming please help me please
Reply
#2

PHP код:
public OnPlayerSpawn(playerid)
{
if(
PlayerInfo[playerid][Level] == || IsPlayerAdmin(playerid)) 
    {
        new 
Text3D:VIPS;
     
VIPS Create3DTextLabel(" V.I.P Member"red0.00.00.050.000);
     
Attach3DTextLabelToPlayer(VIPSplayerid0.00.00.0);
      
SetPlayerArmour(playerid,100);
    }
    return 
1;

Reply
#3

ok testing
Reply
#4

C:\Users\Rajan\Desktop\final server v9 satdm\gamemodes\SATDM_v9.pwn(26850) : error 010: invalid function or declaration
C:\Users\Rajan\Desktop\final server v9 satdm\gamemodes\SATDM_v9.pwn(26853) : error 010: invalid function or declaration
C:\Users\Rajan\Desktop\final server v9 satdm\gamemodes\SATDM_v9.pwn(26857) : error 010: invalid function or declaration

so many errors after adding this
Reply
#5

Try to compile it again, You should not receive any error.
Reply
#6

i had recieved
Reply
#7

my on player spawn is so big can u fit that in it
Код:
public OnPlayerSpawn(playerid)
{
    
	KZI_OnPlayerSpawn( playerid );
//	GangZoneShowForPlayer(playerid, dm, 0x00000096);
	//hide spawn info
	TextDrawHideForPlayer(playerid, worker0);
	TextDrawHideForPlayer(playerid, worker1);
	TextDrawHideForPlayer(playerid, pimp0);
	TextDrawHideForPlayer(playerid, pimp1);
	TextDrawHideForPlayer(playerid, golfer0);
	TextDrawHideForPlayer(playerid, golfer1);
	TextDrawHideForPlayer(playerid, triad0);
	TextDrawHideForPlayer(playerid, triad1);
	TextDrawHideForPlayer(playerid, army0);
	TextDrawHideForPlayer(playerid, army1);
	TextDrawHideForPlayer(playerid, mechanic0);
	TextDrawHideForPlayer(playerid, mechanic1);
	TextDrawHideForPlayer(playerid, medic0);
	TextDrawHideForPlayer(playerid, medic1);
	TextDrawHideForPlayer(playerid, swat0);
	TextDrawHideForPlayer(playerid, swat1);
	TextDrawHideForPlayer(playerid, chicken0);
	TextDrawHideForPlayer(playerid, chicken1);
	TextDrawHideForPlayer(playerid, toreno0);
	TextDrawHideForPlayer(playerid, toreno1);
	TextDrawHideForPlayer(playerid, pilot0);
	TextDrawHideForPlayer(playerid, pilot1);
	TextDrawHideForPlayer(playerid, nang0);
	TextDrawHideForPlayer(playerid, nang1);
	TextDrawHideForPlayer(playerid, rules0);
	TextDrawHideForPlayer(playerid, rules1);
	TextDrawHideForPlayer(playerid, rules2);

  	Player_PutInGang( playerid, gangT[ playerid ] );
	Player_SetToGangColor( playerid );

	if(ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false)
	{
		GameTextForPlayer(playerid,"~r~Server Locked~n~You must enter password before spawning~n~/password <password>",4000,3);
		SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
		return 1;
	}

	if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0)
	{
		GameTextForPlayer(playerid,"~r~Before you can play, you must login!",4000,3);
		new paramsl[128];
		ShowPlayerDialog(playerid, DIALOGID0+2, DIALOG_STYLE_INPUT,"Login Password", paramsl, "OK", "Cancel"); //Broken
		SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
		return 1;
	}
// here line 26342
	if(ServerInfo[MustRegister] == 1 && PlayerInfo[playerid][Registered] == 0)
	{
		new params[128];
		GameTextForPlayer(playerid,"~r~Before you can play, you must register!",4000,3);
		ShowPlayerDialog(playerid, DIALOGID0+1, DIALOG_STYLE_INPUT,"Password", params, "OK", "Cancel");
		SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
		return 1;
	}

	PlayerInfo[playerid][Spawned] = 1;
	
	if(PlayerInfo[playerid][Frozen] == 1) {
		TogglePlayerControllable(playerid,false); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still Frozen");
	}

	if(PlayerInfo[playerid][Jailed] == 1) {
	    SetTimerEx("JailPlayer",3000,0,"d",playerid); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still In Jail");
	}
	if(ServerInfo[AdminOnlySkins] == 1) {
		if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) || (GetPlayerSkin(playerid) == ServerInfo[AdminSkin2]) ) {
			if(PlayerInfo[playerid][Level] >= 1)
				GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin",3000,1);
			else {
				GameTextForPlayer(playerid,"~r~This Skin ~b~Is For~n~ ~g~Administrators~n~ ~r~Only",4000,1);
				SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
				return 1;
			}
		}
	}
	if((dUserINT(PlayerName2(playerid)).("UseSkin")) == 1)
	if((PlayerInfo[playerid][Level] >= 1) && (PlayerInfo[playerid][LoggedIn] == 1))
	SetPlayerSkin(playerid,(dUserINT(PlayerName2(playerid)).("FavSkin")) );
	
	if(ServerInfo[GiveWeap] == 1) {
		if(PlayerInfo[playerid][LoggedIn] == 1) {
			PlayerInfo[playerid][TimesSpawned]++;
			if(PlayerInfo[playerid][TimesSpawned] == 1)
			{
 				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap1"), dUserINT(PlayerName2(playerid)).("weap1ammo")	);
				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap2"), dUserINT(PlayerName2(playerid)).("weap2ammo")	);
				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap3"), dUserINT(PlayerName2(playerid)).("weap3ammo")	);
				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap4"), dUserINT(PlayerName2(playerid)).("weap4ammo")	);
				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap5"), dUserINT(PlayerName2(playerid)).("weap5ammo")	);
				GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap6"), dUserINT(PlayerName2(playerid)).("weap6ammo")	);
			}
		}
	}
	if(PlayerInfo[playerid][LoggedIn] == 0) {
		SendClientMessage(playerid, COLOR_BRIGHTRED, "-----------------------------------------------------------------------------------------------------------------------");
		SendClientMessage(playerid,COLOR_YELLOW, "You have not logged in yet!");
		SendClientMessage(playerid,COLOR_YELLOW, "Please register your current player name with '/register [password]' and login with '/login [password]'");
		SendClientMessage(playerid, COLOR_BRIGHTRED, "-----------------------------------------------------------------------------------------------------------------------");
	}

	if(PlayerInfo[playerid][Level] >0) {
		HasPGP[playerid] = 1;
		HasAirP[playerid] = 1;
	}
	SetPlayerColor(playerid,COLOR_GREY);
	switch(PlayerInfo[playerid][team]) {
		case TEAM_WORKER: {
			GivePlayerWeapon(playerid,22,200);
			GivePlayerWeapon(playerid,6,1);
			GivePlayerWeapon(playerid,30,360);
			SetPlayerColor(playerid,COLOR_GREEN);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_PIMP: {
			GivePlayerWeapon(playerid,26,100);
			GivePlayerWeapon(playerid,29,360);
			GivePlayerWeapon(playerid,15,1);
			SetPlayerColor(playerid,COLOR_RED);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_GOLFER: {
			GivePlayerWeapon(playerid,24,100);
			GivePlayerWeapon(playerid,32,300);
			GivePlayerWeapon(playerid,2,1);
			SetPlayerColor(playerid,COLOR_YELLOW);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_TRIAD: {
			GivePlayerWeapon(playerid,32,300);
			GivePlayerWeapon(playerid,30,400);
		    GivePlayerWeapon(playerid, 8, 1);
			SetPlayerColor(playerid,COLOR_PINK);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_ARMY: {
			GivePlayerWeapon(playerid,26,80);
			GivePlayerWeapon(playerid,31,300);
			GivePlayerWeapon(playerid,23,170);
			SetPlayerColor(playerid,COLOR_DARKGREEN);
			HasLawEnforcementRadio[playerid] =1;
			LawEnforcementRadio[playerid] =1;
			HasPGP[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_MECHANIC: {
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_LIGHTBLUE);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_MEDIC: {
			GivePlayerWeapon(playerid,26,100);
			GivePlayerWeapon(playerid,23,170);
			GivePlayerWeapon(playerid,9,1);
			SetPlayerColor(playerid,COLOR_BRIGHTRED);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_SWAT: {
			GivePlayerWeapon(playerid,29,360);
			GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,3,1);
			SetPlayerColor(playerid,COLOR_ORANGE);
			hastazer[playerid] =1;
			HasLawEnforcementRadio[playerid] =1;
			HasPGP[playerid] =1;
			LawEnforcementRadio[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_CHICKEN: {
			GivePlayerWeapon(playerid, 18, 8);
			SetPlayerColor(playerid,COLOR_DARKYELLOW);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
	  	}
		case TEAM_TORENO: {
	   		GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,24,100);
			GivePlayerWeapon(playerid,28,400);
			SetPlayerColor(playerid,COLOR_SKIN);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_PILOT: {
			GivePlayerWeapon(playerid, 46, 1);
			SetPlayerColor(playerid,COLOR_DARKGREY);
			HasAirP[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_DANANG: {
	   		GivePlayerWeapon(playerid,24,70);
			GivePlayerWeapon(playerid,27,77);
			GivePlayerWeapon(playerid,28,300);
			SetPlayerColor(playerid,COLOR_DARKRED);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LVBALLA: {
			GivePlayerWeapon(playerid,32,100);
			GivePlayerWeapon(playerid,25,100);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_BRIGHTRED);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
	   		SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVGROVE: {
			GivePlayerWeapon(playerid,28,200);
		   	GivePlayerWeapon(playerid,30,200);
		  	GivePlayerWeapon(playerid,4,1);
		   	SetPlayerColor(playerid,COLOR_DARKGREEN);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVVAGO: {
			GivePlayerWeapon(playerid,31,200);
			GivePlayerWeapon(playerid,32,100);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_LIGHTBLUE);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
	   		SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVAZTEC: {
			GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,30,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_BLUE);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVTRIAD: {
			GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,30,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_YELLOW);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVMEDIC: {
			GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,28,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_RED);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVFIRE: {
			GivePlayerWeapon(playerid,27,100);
			GivePlayerWeapon(playerid,28,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_ORANGE);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVCOP: {
			GivePlayerWeapon(playerid,24,100);
			GivePlayerWeapon(playerid,31,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_DARKBLUE);
			hastazer[playerid] =1;
			HasLawEnforcementRadio[playerid] =1;
			LawEnforcementRadio[playerid] =1;
			HasPGP[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVARMY: {
			GivePlayerWeapon(playerid,24,100);
			GivePlayerWeapon(playerid,31,200);
			GivePlayerWeapon(playerid,4,1);
			SetPlayerColor(playerid,COLOR_BROWN);
			hastazer[playerid] =1;
			HasLawEnforcementRadio[playerid] =1;
			LawEnforcementRadio[playerid] =1;
			HasPGP[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LVCIV: {
		   	GivePlayerWeapon(playerid,28,200);
		   	GivePlayerWeapon(playerid,30,200);
		   	GivePlayerWeapon(playerid,4,1);
		   	SetPlayerColor(playerid,COLOR_WHITE);
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
			SetPlayerRandomSpawn(playerid);
		}
		case TEAM_LSCOP: {
			SetPlayerColor(playerid,COLOR_BLUE); //BLUE
			hastazer[playerid] =1;
			HasLawEnforcementRadio[playerid] =1;
			LawEnforcementRadio[playerid] =1;
			HasPGP[playerid] =1;
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LSGROVE: {
			SetPlayerColor(playerid,COLOR_GREEN); //GREEN
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LSVAGO: {
			SetPlayerColor(playerid,COLOR_YELLOW); //YELLOW
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LSAZTECA: {
			SetPlayerColor(playerid,COLOR_LIGHTBLUE); //LIGHT BLUE
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LSBALLA: {
			SetPlayerColor(playerid,COLOR_PURPLE); //Dark Red
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
		case TEAM_LSPIZZABOY: {
			SetPlayerColor(playerid,COLOR_ORANGE); //ORANGE
			if(PlayerInfo[playerid][Jailed] == 1) {
				SetPlayerInterior(playerid,6);
				TogglePlayerControllable(playerid,0);
				SetPlayerPos(playerid,265.1273,77.6823,1001.0391);
				SetPlayerFacingAngle(playerid,271.3259);
				SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment...Welcome back to jail!!!");
				return 1;
			}
		}
	}
	SetPlayerInterior(playerid, 0);
	GameTextForPlayer(playerid,"~y~PwN Them All!!!", 3000, 5);
	PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
	IsSpawned[playerid] = 1;
	SpawnPlayerAtHouse(playerid);
	return 1;
}
Reply
#8

Try this
pawn Код:
new Text3D:VIPS;

public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[playerid][Level] == 1 || IsPlayerAdmin(playerid))
    {
       VIPS = Create3DTextLabel("VIP MEMBER", red, 0.0, 0.0, 0.0, 50.0, 0, 0); // This is wrong VIPS[playerid] because already define it in PlayerInfo
       Attach3DTextLabelToPlayer(VIPS, playerid, 0.0, 0.0, 0.0);
       SetPlayerArmour(playerid, 100);
    }
    return 1;
}
Reply
#9

Show me the lines of error.
Reply
#10

everytime on

if(PlayerInfo[playerid][Level] == 1 || IsPlayerAdmin(playerid))

says unreachible code
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)