Jump to content
  • 0

Cum schimb HQ-ul si int acestuia


Colenelu

Question

Nick:Colonelul

Problema:As vrea sa schim hq-ul adica acel ,,i" la care scri /enter sa intri in hq si interiorul !Ca am un bug la o factiune cand dau resapwn cade pe langa interiorul hq-ului si vreau sa il schimb sau sa mut locul de sapwn a membrilor putin mai incolo ca sa nu cada in gol!

Erori / warnings:

Lini/script:

Ai incercat sa rezolvi singur ?:Da dar nu stiu!Nu mi-a mers!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

Te duci la:

if(gPlayerLogged[playerid] != 0)
Si o sa ai linii ca urmatoarea pe care o pun eu jos:
else if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// Police Departament Spawn
	       {
		    if(FSpawn[playerid] == 1)
		    {
				SetPlayerToTeamColor(playerid);
				SetPlayerPos(playerid, 1529.5148,-1668.1172,6.2188);
				SetPlayerFacingAngle(playerid, 270.0);
				SetPlayerInterior(playerid,0);
                                SetPlayerVirtualWorld(playerid, 1)
				PlayerInfo[playerid][pInt] = 0;
				//return 1;
			} 

Schimbi SetPlayerPos(playerid, id) - Pui ce position vrei

SetPlayerInterior(playerid, interior) -  Pui ce interior sa primeasca atunci cand intra pe server (cea a interiorului).

SetPlayerVirtualWorld(playerid, virtualworld)  - Pui ce virtualworld sa primeasca atunci cand intra pe server.

ATENTIE, dupa ce schimbi spawn trebuie sa schimb si coordonatele de exit + enter.

Link to comment
Share on other sites

pai da pun asa

6784       SetPlayerToTeamColor(playerid,0x33CCFFAA)
si imi da erroare:
(6784) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
uite si culoarea care am puso:
#define 	COLOR_LIGHTBLUE 					0x33CCFFAA

Link to comment
Share on other sites

SetPlayerToTeamColor
este un callback creat de cineva tu ai unul asemanator cu acesta :
public SetPlayerToTeamColor(playerid)
{
	if(IsPlayerConnected(playerid))
	{
//-----------------------------------------------------------------------------------------------------------------//
      SetPlayerColor(playerid, COLOR_WHITE); //White
      if(PlayerInfo[playerid][pMember] == 0) { SetPlayerColor(playerid, COLOR_WHITE); } //CiviL
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pMember] == 1) { SetPlayerColor(playerid, COLOR_PD); } //Police Force
      if(PlayerInfo[playerid][pLeader] == 1) { SetPlayerColor(playerid, COLOR_PD); } //Police Force
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pMember] == 2) { SetPlayerColor(playerid, COLOR_FBI); } //FBI
      if(PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, COLOR_FBI); } //FBI
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 3) { SetPlayerColor(playerid, COLOR_NG); } //National Guard
      if(PlayerInfo[playerid][pMember] == 3) { SetPlayerColor(playerid, COLOR_NG); } //National Guard
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pMember] == 4) { SetPlayerColor(playerid, COLOR_LIGHTRED); } //M/F DeParTamenT
      if(PlayerInfo[playerid][pLeader] == 4) { SetPlayerColor(playerid, COLOR_LIGHTRED); } //M/F DeParTamenT
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 5) { SetPlayerColor(playerid, COLOR_DARKNICERED); } //The Mafia
      if(PlayerInfo[playerid][pMember] == 5) { SetPlayerColor(playerid, COLOR_DARKNICERED); } //The Mafia
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, COLOR_TRIADS); } //The Triads
      if(PlayerInfo[playerid][pMember] == 6) { SetPlayerColor(playerid, COLOR_TRIADS); } //The Triads
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
		if(PlayerInfo[playerid][pMember] == 7) { SetPlayerColor(playerid, 0xFFF86FFF); } //Tow Car Company
        if(PlayerInfo[playerid][pLeader] == 7) { SetPlayerColor(playerid, 0xFFF86FFF); } //Tow Car Company
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 8) { SetPlayerColor(playerid, COLOR_INVIS); } //HITMAN
      if(PlayerInfo[playerid][pMember] == 8) { SetPlayerColor(playerid, COLOR_INVIS); } //HITMAN
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 9) { SetPlayerColor(playerid, COLOR_PURPLE); } //reporter
      if(PlayerInfo[playerid][pMember] == 9) { SetPlayerColor(playerid, COLOR_PURPLE); } //reporter
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 10) { SetPlayerColor(playerid, COLOR_TAXI); } //taxi
      if(PlayerInfo[playerid][pMember] == 10) { SetPlayerColor(playerid, COLOR_TAXI); } //taxi
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 11) { SetPlayerColor(playerid, COLOR_SI); } //SI
      if(PlayerInfo[playerid][pMember] == 11) { SetPlayerColor(playerid, COLOR_SI); } //SI
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      //if(PlayerInfo[playerid][pLeader] == 12) { SetPlayerColor(playerid, COLOR_BIKERS); } //Bikers
      //if(PlayerInfo[playerid][pMember] == 12) { SetPlayerColor(playerid, COLOR_BIKERS); } //Bikers
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      //if(PlayerInfo[playerid][pLeader] == 13) { SetPlayerColor(playerid, COLOR_SFR); } //SFR
     //if(PlayerInfo[playerid][pMember] == 13) { SetPlayerColor(playerid, COLOR_SFR); } //SFR
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      //if(PlayerInfo[playerid][pLeader] == 14) { SetPlayerColor(playerid, COLOR_DNB); } //DNB
      //if(PlayerInfo[playerid][pMember] == 14) { SetPlayerColor(playerid, COLOR_DNB); } //DNB
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 15) { SetPlayerColor(playerid, COLOR_VAGOS); } //Vagos
      if(PlayerInfo[playerid][pMember] == 15) { SetPlayerColor(playerid, COLOR_VAGOS); } //Vagos
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 16) { SetPlayerColor(playerid, COLOR_AZTECAS); } //Aztecas
      if(PlayerInfo[playerid][pMember] == 16) { SetPlayerColor(playerid, COLOR_AZTECAS); } //Aztecas
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 17) { SetPlayerColor(playerid, COLOR_BALLAS); } //Ballas
      if(PlayerInfo[playerid][pMember] == 17) { SetPlayerColor(playerid, COLOR_BALLAS); } //Ballas
//-----------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------//
      if(PlayerInfo[playerid][pLeader] == 18) { SetPlayerColor(playerid, COLOR_GREEN2); } //Grove
      if(PlayerInfo[playerid][pMember] == 18) { SetPlayerColor(playerid, COLOR_GREEN2); } //Grove
//-----------------------------------------------------------------------------------------------------------------//
	}
}

Inloc de COLOR_GREEN2 sau 0xFFF86FFF pui tu ce culoare vrei . Uitate aici ai o lista cu unele culori http://forum.sa-mp.com/showthread.php?t=157789 .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.