(pomoc) /fzizlaz

Započeo Jack_Ass, Jul 25, 2013, 17:55:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta nezz
Problem: Kada kucam /fzizlaz znaci izadjem iz free zone ak me neko ubije opet se spawn u fz-u

dio sc


YCMD:fzizlaz(playerid, params[], help)
{
#pragma unused help
new string[128];
{
if(gang[playerid] == 0)
{
SendClientMessage(playerid,COLOR_RED,"Nisi u FreeZoni.");
return 1;
}
UsouFZ[playerid] = 0;
gang[playerid] = 0;
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "%s Je Napustio FreeZonu.", PNAME);
SendClientMessageToAll(COLOR_RED,string);
SetPlayerPos(playerid, 2020.8140,-1306.1547,20.8792);
g_SetPlayerHealth(playerid,100);
PlayerInfo[playerid][pSkin] = 1;
ResetPlayerWeapons(playerid);
}
return 1;
}

Zato što vjerovatno kad ulaziš staviš SetSpawnInfo sve za tu zonu, promjeni na prave i u /fzizlaz koordinate ili u OnPlayerDeath postavi SetSpawnInfo pa gde već želiš da ga spawna.
Last nick: Vectro64

Ja sto sam znao pokusao sam vise nmogu ak mi neko zna napraviti evo


if(dialogid == DIALOG_FZ)
{
new string[128];
if(response)
{
if(listitem == 0)
{
if(gang[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"Morate napustit svoj tim.");
return 1;
}
UsouFZ[playerid] = 1;
gang[playerid] = 1;
SetPlayerSkin(playerid,285);
g_GivePlayerWeapon(playerid,24,1000);
g_GivePlayerWeapon(playerid,31,1000);
g_GivePlayerWeapon(playerid,29,1000);
g_SetPlayerHealth(playerid,100);
GetPlayerHealth(playerid,OldHealth);
GetPlayerPos(playerid, X, Y, Z);
SetSpawnInfo(playerid, gang[playerid], 285, 486.6530,880.4146,-30.8512, 90.0, 24,100,31,100,29,1000);
SetPlayerPos(playerid, 486.6530,880.4146,-30.8512);
SendClientMessage(playerid,COLOR_RED,"Dobro dosao u Tim Alfa.");
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "%s Je Spojen u Alfa tim.", PNAME);
FzPoruka(COLOR_RED,string);
}
if(listitem == 1)
{
if(gang[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"Morate napustit svoj tim.");
return 1;
}
UsouFZ[playerid] = 1;
gang[playerid] = 2;
SetPlayerSkin(playerid,287);
//SetPlayerColor(playerid,BELA);
g_GivePlayerWeapon(playerid,24,1000);
g_GivePlayerWeapon(playerid,31,1000);
g_GivePlayerWeapon(playerid,29,1000);
GetPlayerPos(playerid, X, Y, Z);
SetSpawnInfo(playerid, gang[playerid], 287, 720.5070,909.5706,-19.5366, 90.0, 24,100,31,100,29,1000);
SendClientMessage(playerid,COLOR_RED,"Dobro dosao u Tim Beta");
g_SetPlayerHealth(playerid,100);
GetPlayerHealth(playerid,OldHealth);
SetPlayerPos(playerid,720.5070,909.5706,-19.5366);
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "%s Spojen u Beta Tim", PNAME);
FzPoruka(COLOR_RED,string);
}
}
}


pa postavi spawn
PlayerInfo[playerid][pSpawn] = 1;
ili kako ti vec ide varijabla
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Provjeri mozda ti cuva kao spawn tamo kada udjes u tu zonu,vjerovatno imas komandu da udjes u tu zonu,onda tu provjeri..




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

Daj komandu za ulaz u fz
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info