(Pomoc) /fzulaz ne funkcionise

Započeo Jack_Ass, Avgust 03, 2013, 17:25:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta nez
Problem kada kucam /fzulaz i odaberem jedan tim npr alfa ne spawnu je me na mestu za DM a sve sam dobro urad


YCMD:fzulaz(playerid, params[], help)
{
//if(fzpokrenut == 1) return SCM(playerid, 0x33CCFFAA, "FZ je zatvoren");
SPD(playerid, DIALOG_FZPORT, DIALOG_STYLE_LIST, "FreeZona", "Tim Alfa\nTim Beta", "Odaberi", "Odustani");
return 1;
}



if(dialogid == DIALOG_FZPORT)
{
if(response)
{
if(listitem == 0)
{
if(gang[playerid] == 1)
{
SendClientMessage(playerid, 0x33CCFFAA,"[Y:RP] Morate napustit svoj tim.");
return 1;
}
UsouFZ[playerid] = 1;
gang[playerid] = 1;
PlayerInfo[playerid][pDM] = 1;
SetPlayerSkin(playerid,285);
SetPlayerInterior(playerid, 0);
//SetPlayerColor(playerid,BELA);
g_GivePlayerWeapon(playerid,24,1000);
g_GivePlayerWeapon(playerid,31,1000);
g_GivePlayerWeapon(playerid,29,1000);
g_SetPlayerHealth(playerid,100);
GetPlayerHealth(playerid,OldHealth);
GetPlayerPos(playerid, posX, posY, posZ);
GetPlayerFacingAngle(playerid, facingA);
//SetSpawnInfo(playerid, gang[playerid], 285, -1463.8215,1518.2748,8.2591, 90.0, 24,100,31,100,29,1000);
SetPlayerPos(playerid, -1447.4956,1502.6373,1.7366);
SendClientMessage(playerid,SVETLOPLAVA,"Dobro dosao u Tim Alfa.");
new string[100];
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "%s Je Spojen u Alfa tim.", PNAME);
FzPoruka(0x33CCFFAA,string);
if(fzstartan == 1)
{
TextDrawShowForPlayer(playerid, FZRatCrno);
TextDrawShowForPlayer(playerid, FZRatTim1);
TextDrawShowForPlayer(playerid, FZRatLinija);
TextDrawShowForPlayer(playerid, FZRatTim2);
TextDrawShowForPlayer(playerid, FZRatSkor1);
TextDrawShowForPlayer(playerid, FZRatSkor2);
TextDrawShowForPlayer(playerid, FZRatnaslovna);
}
}
if(listitem == 1)
{
if(gang[playerid] == 1)
{
SendClientMessage(playerid,0x33CCFFAA,"[Y:RP] Morate napustit svoj tim.");
return 1;
}
UsouFZ[playerid] = 1;
gang[playerid] = 2;
PlayerInfo[playerid][pDM] = 2;
SetPlayerSkin(playerid,287);
//SetPlayerColor(playerid,BELA);
g_GivePlayerWeapon(playerid,24,1000);
g_GivePlayerWeapon(playerid,31,1000);
g_GivePlayerWeapon(playerid,29,1000);
SetPlayerInterior(playerid, 0);
GetPlayerPos(playerid, posX, posY, posZ);
GetPlayerFacingAngle(playerid, facingA);
//SetSpawnInfo(playerid, gang[playerid], 287, -1435.7833,1480.5704,1.8672, 90.0, 24,100,31,100,29,1000);
SendClientMessage(playerid,SVETLOPLAVA,"Dobro dosao u Tim Beta");
g_SetPlayerHealth(playerid,100);
GetPlayerHealth(playerid,OldHealth);
SetPlayerPos(playerid, -1435.7833,1480.5704,1.8672);
new string[100];
GetPlayerName(playerid, PNAME, MAX_PLAYERS);
format(string, sizeof(string), "%s Spojen u Beta Tim", PNAME);
FzPoruka(0x33CCFFAA,string);
if(fzstartan == 1)
{
TextDrawShowForPlayer(playerid, FZRatCrno);
TextDrawShowForPlayer(playerid, FZRatTim1);
TextDrawShowForPlayer(playerid, FZRatLinija);
TextDrawShowForPlayer(playerid, FZRatTim2);
TextDrawShowForPlayer(playerid, FZRatSkor1);
TextDrawShowForPlayer(playerid, FZRatSkor2);
TextDrawShowForPlayer(playerid, FZRatnaslovna);
}
}
}
}
Poslednja Izmena: Avgust 03, 2013, 17:50:26 POSLE PODNE od Jack_Ass


probaj sa setspawninfo
i dodaj jos ispod SpawnPlayer(playerid);
ako nece ovako sa setplayerpos
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!