Skripta koju koristim:gtarp
Opis problema:ako moze jedna jos pomoc ne spawnamiseu bazi nego na spawnu jbt a kada udjese u srv onda me spawna u bazi a kad se ja ubijem onda me ne porta vrati me na spawn
Dio skripte:
Slike:/
Setplayerspawn
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerSkin(playerid, PlayerInfo);
if(PlayerInfo == 0)
{
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc = 1; gNews = 1; gFam = 1;
SetPlayerInterior(playerid, 3);
PlayerInfo = 3;
JBC_SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep = 1;
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Dobrodošli na server, molim vas ispunite podatke.");
ShowPlayerDialog(playerid, 12348, DIALOG_STYLE_LIST, "Kojeg ste pola?", "{0049FF}Musko \n{F81414}Zensko", "U redu", "Odustani");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
return 1;
}
if(AdminSpec == 1)
{
return 1;
}
new rand;
new house = PlayerInfo;
if(PlayerPaintballing != 0)
{
SafeJBC_ResetPlayerWeapons(playerid);
SafeJBC_GivePlayerWeapon(playerid, 29, 999);
rand = random(sizeof(PaintballSpawns));
JBC_SetPlayerPos(playerid, PaintballSpawns, PaintballSpawns, PaintballSpawns);
return 1;
}
if(PlayerInfo == 1)
{
/*SetPlayerInterior(playerid, 6);
PlayerInfo = 6;
JBC_SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nedovrsena zatvorska kazna,natrad u zatvor.");*/
SetPlayerInterior(playerid, 6);
PlayerInfo = 6;
rand = random(sizeof(ZatvorSpawns));
JBC_SetPlayerPos(playerid, ZatvorSpawns, ZatvorSpawns, ZatvorSpawns);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuna zatvorska kazna, nazad u zatvor.");
return 1;
}
if(PlayerInfo == 2)
{
/*SetPlayerInterior(playerid, 0);
PlayerInfo = 0;
JBC_SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811*/
SetPlayerInterior(playerid, 0);
PlayerInfo = 0;
rand = random(sizeof(ZatvorSpawns));
JBC_SetPlayerPos(playerid, ZatvorSpawns, ZatvorSpawns, ZatvorSpawns);
return 1;
}
if(MedicBill == 1 && PlayerInfo == 0 && PlayerPaintballing == 0)
{
if(FirstSpawn != 1)
{
//new string;
new cut = deathcost;
SafeJBC_GivePlayerMoney(playerid, -cut);
MedicBill = 0;
MedicTime = 0;
NeedMedicTime = 0;
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,14.5469);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
/*JBC_SetPlayerHealth(playerid, 50.0);
PlayerInfo += 1;
SetPlayerInterior(playerid, 3);
PlayerInfo = 3;
rand = random(sizeof(gMedicSpawns));
JBC_SetPlayerPos(playerid, gMedicSpawns, gMedicSpawns, gMedicSpawns); // 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 = 1;
MedicTime = 1;
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
if(PlayerInfo > 0)
{
NeedMedicTime = 30;
}
else
{
NeedMedicTime = 40;
}
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);*/
return 1;
}
}
if(JustDied == 1)
{
if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo != 0)
{
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo = 0;
}
JBC_SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
if(PlayerInfo == 1)
{
if(TutTime == 0 && PlayerInfo == 1 && RegistrationStep == 0 && AfterTutorial == 0 && FirstSpawn == 1)
{
SetPlayerVirtualWorld(playerid,PlayerInfo);
SetPlayerInterior(playerid,PlayerInfo);
JBC_SetPlayerPos(playerid, PlayerInfo, PlayerInfo, PlayerInfo + 1);
//SendClientMessage(playerid, COLOR_WHITE, "Crashed, returning where you been.");
//GameTextForPlayer(playerid, "~p~Crashed~n~~w~returning where you been", 5000, 1);
return 1;
}
}
if(house !=9999)
{
if(SpawnChange) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo);
SetPlayerVirtualWorld(playerid,HouseInfo);
JBC_SetPlayerPos(playerid, HouseInfo, HouseInfo,HouseInfo); // Warp the player
PlayerInfo = house;
HouseEntered = house;
PlayerInfo = HouseInfo;
return 1;
}
}
if (PlayerInfo == 1 || PlayerInfo == 1)//Police Force spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,6);
rand = random(sizeof(gCopPlayerSpawns));
JBC_SetPlayerPos(playerid, gCopPlayerSpawns, gCopPlayerSpawns, gCopPlayerSpawns); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
PlayerInfo = 6;
return 1;
}
if (PlayerInfo == 2 || PlayerInfo == 2)//FBI spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
PlayerInfo = 3;
return 1;
}
if (PlayerInfo == 3 || PlayerInfo == 3)//National Guard spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
JBC_SetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 4 || PlayerInfo == 4)//Fire/Ambulance spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1180.2388,-1331.6196,1006.402😎;
SetPlayerInterior(playerid,6);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo = 6;
return 1;
}
if (PlayerInfo == 5 || PlayerInfo == 5)//Aryan spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 3);
JBC_SetPlayerPos(playerid, 961.40710449219,-53.224853515625,1001.1245727539);
PlayerInfo = 5;
return 1;
}
if (PlayerInfo == 6 || PlayerInfo == 6)//Yakuze spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 5);
JBC_SetPlayerPos(playerid, 1265.4475,-794.9257,1084.007😎;
PlayerInfo = 5;
return 1;
}
if(PlayerInfo == 7 || PlayerInfo == 7)//Mayor spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 3);
JBC_SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo = 3;
PlayerInfo = 241;
return 1;
}
if (PlayerInfo == 8 || PlayerInfo == 😎 //Hitman spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 9 || PlayerInfo == 9) //News spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 355.7899,204.0173,1008.382😎;
PlayerInfo = 3;
SafeJBC_GivePlayerWeapon(playerid, 43, 20);
return 1;
}
if (PlayerInfo == 10 || PlayerInfo == 10) //Taxi Cab Company spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
/*if (PlayerInfo == 14 || PlayerInfo == 14)//Yamaguchi spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 1);
JBC_SetPlayerPos(playerid, -779.6406,501.2036,1371.7422);
PlayerInfo = 1;
return 1;
}
*/
if (PlayerInfo == 15 || PlayerInfo == 15)//Grove Street Gang spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 2);
JBC_SetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
PlayerInfo = 2;
return 1;
}
if (PlayerInfo == 16 || PlayerInfo == 16)//Trinitario spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 😎;
JBC_SetPlayerPos(playerid, 2809.1741,-1169.0574,1025.5703);
PlayerInfo = 8;
return 1;
}
/*if(IsAnInstructor(playerid) || PlayerInfo == 11 || PlayerInfo == 11) //Driving/Flying School spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo = 3;
return 1;
}*/
if ((gTeam) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
JBC_SetPlayerPos(playerid, gMedPlayerSpawns, gMedPlayerSpawns, gMedPlayerSpawns); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
/*if(PlayerInfo != 255)
{
new family = PlayerInfo;
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo);
JBC_SetPlayerPos(playerid, FamilyInfo,FamilyInfo,FamilyInfo);
SetPlayerFacingAngle(playerid, FamilyInfo);
return 1;
}*/
else
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
}
return 1;
}
onplayerspawn
public OnPlayerSpawn(playerid)
{
SetPlayerAttachedObject(playerid, 1, 1210, 6,0.2,0.17,0,0,270);
SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
TextDrawShowForPlayer(playerid, poruke);
TextDrawShowForPlayer(playerid, Text:poruke1);
TextDrawShowForPlayer(playerid, Text:poruke2);
TextDrawShowForPlayer(playerid, Text:poruke3);
TextDrawShowForPlayer(playerid, Text:poruke4);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw😎;
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Text50);
TextDrawShowForPlayer(playerid, Text51);
TextDrawShowForPlayer(playerid, Text52);
TextDrawShowForPlayer(playerid, Text53);
TextDrawShowForPlayer(playerid, Text54);
InitLockDoors(playerid);
STDPlayer = 0;
gTeam = PlayerInfo; //Set the Team
if (gTeam == 4) //medic / criminal reset team
{
gTeam = 3;
}
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahtjeva login prije spawna (Kicked) **");
KickPlayer = 1;
}
if(!gPlayerAnimLibsPreloaded)
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
gPlayerAnimLibsPreloaded = 1;
}
if(gTeam == 11 && PlayerInfo < 1)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Vise niste Lider, sad ste ponovo civil !");
PlayerInfo = 3;
gTeam = 3;
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
if(gTeam == 5)
{
if(PlayerInfo < 1)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste vise clan u Organizaciju, Sad ste ponovo civil !");
PlayerInfo = 3;
gTeam = 3;
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 10)
{
if(PlayerInfo != 😎
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Vise niste clan ove agencije, sad ste ponovo civil !");
PlayerInfo = 3;
gTeam = 3;
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 2 && PlayerInfo > 3)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste se prijavili za Policiju / FBI / SWAT, sada ste civil !");
PlayerInfo = 3;
gTeam = 3;
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
if(gTeam == 3)
{
if(PlayerInfo > 0 || PlayerInfo > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Org, premjesteni ste na odgovarajucu Klasu + Char !");
MedicBill = 0;
new model = PlayerInfo;
if(PlayerInfo == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 2; gTeam = 2; PlayerInfo = model; }
else if(PlayerInfo == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 2; gTeam = 2; PlayerInfo = model; }
else if(PlayerInfo == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 2; gTeam = 2; PlayerInfo = model; }
else if(PlayerInfo == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 1; gTeam = 1; PlayerInfo = model; }
else if(PlayerInfo == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 5; gTeam = 5; PlayerInfo = model; }
//else if(PlayerInfo == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 5; gTeam = 5; PlayerInfo = model; }
else if(PlayerInfo == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 😎 { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 10; gTeam = 10; PlayerInfo = model; }
else if(PlayerInfo == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 12; gTeam = 12; PlayerInfo = model; }
else if(PlayerInfo == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 12; gTeam = 12; PlayerInfo = model; }
//else if(PlayerInfo == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 12; gTeam = 12; PlayerInfo = model; }
else if(PlayerInfo == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 5; gTeam = 5; PlayerInfo = model; }
else if(PlayerInfo == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 5; gTeam = 5; PlayerInfo = model; }
else if(PlayerInfo == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 5; gTeam = 5; PlayerInfo = model; }
else if(PlayerInfo == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
//else if(PlayerInfo == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 😎 { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
//else if(PlayerInfo == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
//else if(PlayerInfo == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
else if(PlayerInfo == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo = 11; gTeam = 11; PlayerInfo = model; }
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
if(PlayerInfo > 0) { SetPlayerSkin(playerid, PlayerInfo); }
else { SetPlayerSkin(playerid, PlayerInfo); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo);
//GangZoneShowForPlayer(playerid, surenos, 0x4C5386AA);
//GangZoneShowForPlayer(playerid, black_yakuza, 0x000000C2);
//GangZoneShowForPlayer(playerid, nortenos, 0x9D000096);
//GangZoneShowForPlayer(playerid, street_zone, 0x33AA33AA);
//GangZoneShowForPlayer(playerid, jefferson_saints, 0xD900D3C😎;
return 1;
}
if(MapIconsShown != 1)
{
MapIconsShown = 1;
for(new i = 0; i < sizeof(BizzInfo); i++)
{
SetPlayerMapIcon(playerid,i + 1,BizzInfo,BizzInfo,BizzInfo,36,COLOR_LIGHTRED);
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
SetPlayerMapIcon(playerid,i + 20,SBizzInfo,SBizzInfo,SBizzInfo,36,COLOR_LIGHTRED);
}
}
return 1;
}
[Pomoc] organizacije spawn
471
pregleda
11
postova
6. Dec. 2012.
6. Dec. 2012.
ako si za komande mislio ovo
da ih prebacis u strcmp
evo vako 🙂
eto 😉
Aa on ti je objasnio za TD 🙂
da ih prebacis u strcmp
evo vako 🙂
if (strcmp("/voda", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(4.0,playerid, 1018.90002441,-2091.50000000,12.00000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1699.80004883,-1696.50000000,12.50000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1917.00000000,-1766.00000000,12.50000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1199.40002441,-957.29998779,41.90000153))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1186.00000000,-1377.50000000,12.60000038))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
return 1;
}
if (strcmp("/voda", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(4.0,playerid, 1377.7008,-1890.2435,13.4782))
{
ShowPlayerDialog(playerid, 8799, DIALOG_STYLE_LIST, "{F81414}Lista","{FFFFFF}Buket cveca {6EF83C}[20$]", "Ok", "Izlaz");
}
return 1;
}
eto 😉
Aa on ti je objasnio za TD 🙂
6. Dec. 2012.
ee blaeks
nema ovo
TextDrawShowForPlayer(playerid, lbb);
TextDrawShowForPlayer(playerid, lbt);
to nema al ima nesto lbb i lbt kao ovo ima ono new text oba to i ima
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
pa ima jos vamo lbb i lbt
TextDrawHideForPlayer(playerid,lbt);
TextDrawHideForPlayer(playerid,lbb);
ovo je pod setplayespawn
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
ovo je kod tutorijala
TextDrawHideForPlayer(i,lbt);
TextDrawHideForPlayer(i,lbb);
ima i ovo oov je pod public GameModeExitFunc() tusu neki killtimer
TextDrawHideForAll(lbt);
TextDrawHideForAll(lbb);
pa ima i ovo
lbt = TextDrawCreate(-1.000000,2.000000,"---");
lbb = TextDrawCreate(0.000000,337.000000,"---");
i ovo ima
lbt = TextDrawCreate(-1.000000,2.000000,"---");
lbb = TextDrawCreate(0.000000,337.000000,"---");
TextDrawUseBox(lbt,1);
TextDrawBoxColor(lbt,0x000000ff);
TextDrawTextSize(lbt,640.000000,-69.000000);
TextDrawUseBox(lbb,1);
TextDrawBoxColor(lbb,0x000000ff);
TextDrawTextSize(lbb,638.000000,-60.000000);
TextDrawAlignment(lbt,0);
TextDrawAlignment(lbb,0);
TextDrawBackgroundColor(lbt,0x000000ff);
TextDrawBackgroundColor(lbb,0x000000ff);
TextDrawFont(lbt,3);
TextDrawLetterSize(lbt,1.000000,12.199999);
TextDrawFont(lbb,3);
TextDrawLetterSize(lbb,0.899999,15.000000);
TextDrawColor(lbt,0x000000ff);
TextDrawColor(lbb,0x000000ff);
TextDrawSetOutline(lbt,1);
TextDrawSetOutline(lbb,1);
TextDrawSetProportional(lbt,1);
TextDrawSetProportional(lbb,1);
TextDrawSetShadow(lbt,1);
TextDrawSetShadow(lbb,1);
ima jos na dva mesta neka ima kod /refresh to i nema vise to jel to sve izbrisem 😄 jel se nece nista drugo mi se sjebat
hvala Lood
nema ovo
TextDrawShowForPlayer(playerid, lbb);
TextDrawShowForPlayer(playerid, lbt);
to nema al ima nesto lbb i lbt kao ovo ima ono new text oba to i ima
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
pa ima jos vamo lbb i lbt
TextDrawHideForPlayer(playerid,lbt);
TextDrawHideForPlayer(playerid,lbb);
ovo je pod setplayespawn
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
ovo je kod tutorijala
TextDrawHideForPlayer(i,lbt);
TextDrawHideForPlayer(i,lbb);
ima i ovo oov je pod public GameModeExitFunc() tusu neki killtimer
TextDrawHideForAll(lbt);
TextDrawHideForAll(lbb);
pa ima i ovo
lbt = TextDrawCreate(-1.000000,2.000000,"---");
lbb = TextDrawCreate(0.000000,337.000000,"---");
i ovo ima
lbt = TextDrawCreate(-1.000000,2.000000,"---");
lbb = TextDrawCreate(0.000000,337.000000,"---");
TextDrawUseBox(lbt,1);
TextDrawBoxColor(lbt,0x000000ff);
TextDrawTextSize(lbt,640.000000,-69.000000);
TextDrawUseBox(lbb,1);
TextDrawBoxColor(lbb,0x000000ff);
TextDrawTextSize(lbb,638.000000,-60.000000);
TextDrawAlignment(lbt,0);
TextDrawAlignment(lbb,0);
TextDrawBackgroundColor(lbt,0x000000ff);
TextDrawBackgroundColor(lbb,0x000000ff);
TextDrawFont(lbt,3);
TextDrawLetterSize(lbt,1.000000,12.199999);
TextDrawFont(lbb,3);
TextDrawLetterSize(lbb,0.899999,15.000000);
TextDrawColor(lbt,0x000000ff);
TextDrawColor(lbb,0x000000ff);
TextDrawSetOutline(lbt,1);
TextDrawSetOutline(lbb,1);
TextDrawSetProportional(lbt,1);
TextDrawSetProportional(lbb,1);
TextDrawSetShadow(lbt,1);
TextDrawSetShadow(lbb,1);
ima jos na dva mesta neka ima kod /refresh to i nema vise to jel to sve izbrisem 😄 jel se nece nista drugo mi se sjebat
hvala Lood
6. Dec. 2012.
e hvala oce e mozel jos nesto molimvas dami kazete kako da napravim nesto jbt jebeme ja u organizacij lider sam ili clan neko bude i ja ga ubijem i on sve opet spawna na spawn na aedrom gdemi spawn i tako sve ne u bazi nzm sto a kadudje u srv spawnase u bazi u nekoj org eto gore setplayerspawn i onplayerspawn ae molimvas dami kazete jos to kako da napravim damise u bazi spawna jbt i otvaram srv ako bog da
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava