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);
Tebi ne vredi ni 50 puta da ti odgovorim :S
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
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!
@
Ralphpublic 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
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...
Citat: |BUG|F!L0[Z]0F|RPG| poslato Jun 05, 2011, 17:02:12 POSLE PODNE
probaj po mom tutu a to makni pa pogledaj vidi...
Tvoj tuta da metim ispod OnplayerDeath ? XD
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!
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...
On zeli obicni spawn i spawn poslije smrti -.-''
Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 16:12:30 POSLE PODNE
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: [Я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
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
SS?
šta ti ga je sad to? xd
Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 18:33:42 POSLE PODNE
SS?
šta ti ga je sad to? xd
Nebitno..editujem 2 moda :D pa da i tu stavim.. pa reko jel mzoe i tu
Citat: Eazy_E poslato Jun 05, 2011, 18:35:58 POSLE PODNE
Citat: [ЯPF] !K4[Я]!K3 poslato Jun 05, 2011, 18:33:42 POSLE PODNE
SS?
šta ti ga je sad to? xd
Nebitno..editujem 2 moda :D pa da i tu stavim.. pa reko jel mzoe i tu
Može gdje god ti oÄeÅ¡.
sad u ss se spawnujem u kuci a ne tamo de sam stavio kordinate :'( ???