[pomoc] spawn posle ubistva


Započeo Eazy_E, Jun 05, 2011, 15:46:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame
Detaljan opis problema:Kako da promenim spawn posle ubistva rodi se kod bolnice na zapadu  a ja ocu kod bolnice na istoku
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

evo sa tog moda faction...

Ovo je Gde se Spawna na Faction...

if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
		    if(FirstSpawn[playerid] != 1)
		    {
		    	//new string[256];
		    	new cut = deathcost;
				SafeJB_GivePlayerMoney(playerid, -cut);
				MedicBill[playerid] = 0;
				MedicTime[playerid] = 0;
				NeedMedicTime[playerid] = 0;
				SetPlayerToTeamColor(playerid);
				SetPlayerPos(playerid,1178.8889,-1323.5004,14.1423);
				SetPlayerFacingAngle(playerid, 0);
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
				/*SetPlayerHealth(playerid, 50.0);
				PlayerInfo[playerid][pDeaths] += 1;
		    	SetPlayerInterior(playerid, 3);
		    	PlayerInfo[playerid][pInt] = 3;
	        	rand = random(sizeof(gMedicSpawns));
				SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
				SetPlayerFacingAngle(playerid, 0);
	        	TogglePlayerControllable(playerid, 0);
	        	GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 30000, 3);
          		JustDied[playerid] = 1;
	        	MedicTime[playerid] = 1;
	        	ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
	        	if(PlayerInfo[playerid][pDonateRank] > 0)
	        	{
	            	NeedMedicTime[playerid] = 30;
	        	}
	        	else
	        	{
	        		NeedMedicTime[playerid] = 40;
				}*/
		    	return 1;
			}
		}


ovo treba promijenit uzmi svoje Coordinate i stavi tu tako da ce se tu spawnati posle...

SetPlayerPos(playerid,1178.8889,-1323.5004,14.1423);

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte supubserver@hotmail.com


Proverite Zasto Smo Najbolji

Tebi ne vredi ni 50 puta da ti odgovorim :S

Kod: c
new Dead[MAX_PLAYERS];  
  
public OnPlayerDeath(playerid,killerid, reason)  
{  
Dead[playerid] = 1;  
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (Dead[playerid] == 1) {  
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
Dead[playerid] = 0;  
}  
  
return 1;  
}
//

Citat: Ralph poslato Jun 05, 2011, 16:03:38 POSLE PODNE
Tebi ne vredi ni 50 puta da ti odgovorim :S

Kod: c
new Dead[MAX_PLAYERS];  
  
public OnPlayerDeath(playerid,killerid, reason)  
{  
Dead[playerid] = 1;  
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (Dead[playerid] == 1) {  
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
Dead[playerid] = 0;  
}  
  
return 1;  
}


I Ovime ces mu pomoc  :'(  :'( Svaka Cast HHH Prvo Protestaj pa onda pomazi krivom smeru!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte supubserver@hotmail.com


Proverite Zasto Smo Najbolji

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

@Ralph
Kod: c
public OnPlayerDeath(playerid,killerid, reason)  
{  
SetPVarInt(playerid, "Krepalo Govno", 1);
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (GetPVarInt(playerid, "Krepalo Govno") == 1) {
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
SetPVarInt(playerid, "Krepalo Govno", 0);
}  
  
return 1;  
}


Citat: |BUG|F!L0[Z]0F|RPG| poslato Jun 05, 2011, 16:05:46 POSLE PODNE
I Ovime ces mu pomoc  :'(  :'( Svaka Cast HHH Prvo Protestaj pa onda pomazi krivom smeru!

umjesto bug u ime stavi bott

Citat: Ralph poslato Jun 05, 2011, 16:03:38 POSLE PODNE
Tebi ne vredi ni 50 puta da ti odgovorim :S

Kod: c
new Dead[MAX_PLAYERS];  
  
public OnPlayerDeath(playerid,killerid, reason)  
{  
Dead[playerid] = 1;  
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (Dead[playerid] == 1) {  
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
Dead[playerid] = 0;  
}  
  
return 1;  
}

Imam broblem.. :@ kad to sve dodam sa kordinatama jednostavno mi poludi pawnoi ugasi se :@ ima li neki ''lek'' za to ?

probaj po mom tutu a to makni pa pogledaj vidi...

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte supubserver@hotmail.com


Proverite Zasto Smo Najbolji


hahah ma neee nego nadjes gde ti je mayor spawn ili hitman spawn povise imas gore medic nesto tako imas coordinate i stavis tvoje kao sto sam ti pokazao al stavi na mjestu gde treba jbt!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte supubserver@hotmail.com


Proverite Zasto Smo Najbolji

Citat: |BUG|F!L0[Z]0F|RPG| poslato Jun 05, 2011, 17:48:39 POSLE PODNE
hahah ma neee nego nadjes gde ti je mayor spawn ili hitman spawn povise imas gore medic nesto tako imas coordinate i stavis tvoje kao sto sam ti pokazao al stavi na mjestu gde treba jbt!

ok brate smesan si xD evo probacu ;)

Uzmi jednostavno samo promeni koordinate jer ti to vec imas u Skripti, ja nisam citao pa sam mislio da zelis da napravis to...pa sam ti dao ono kako treba...
//

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

On zeli obicni spawn i spawn poslije smrti -.-''

Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 16:12:30 POSLE PODNE
Kod: c
public OnPlayerDeath(playerid,killerid, reason)  
{  
SetPVarInt(playerid, "Krepalo Govno", 1);
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (GetPVarInt(playerid, "Krepalo Govno") == 1) {
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
SetPVarInt(playerid, "Krepalo Govno", 0);
}  
  
return 1;  
}

Poslednja Izmena: Jun 05, 2011, 18:30:04 POSLE PODNE od [ЯPF] !K4[Я]!K3

Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 18:29:48 POSLE PODNE
On zeli obicni spawn i spawn poslije smrti -.-''

Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 16:12:30 POSLE PODNE
Kod: c
public OnPlayerDeath(playerid,killerid, reason)  
{  
SetPVarInt(playerid, "Krepalo [cenzura]", 1);
return 1;  
}  
  
public OnPlayerSpawn(playerid)  
{  
if (GetPVarInt(playerid, "Krepalo [cenzura]") == 1) {
SetPlayerPos(playerid, X,Y,Z); // Tu kordinate Spawna  
SetPVarInt(playerid, "Krepalo [cenzura]", 0);
}  
  
return 1;  
}



da brate a jel moze to i na SS ? :D

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'