[Pomoc]Polaganje

25. Dec. 2011.
580
pregleda
4
postova
SEJFO
5
Godfather
25. Dec. 2011.
Editujem: od davno Raven's

Opis problema: ubacim sve za polaganje iz Faction Game i sve radi lijepo osim checkpoint-a,samo prvi checkpoint radi,kada udjem u njega ostali se ne pokazuju

Dio skripte:

//POLAGANJE
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!AutoSkolaAuto(newcar))
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
    return 1;
}
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
    else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
    else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
    else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
    else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
    else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
    else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 100😎 { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
    else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
    else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
    else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{

if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 101😎 { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.778076,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 102😎 { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
    DisablePlayerCheckpoint(playerid);
    CP = 0;
    IgracPolaze = 0;
    SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 22😎
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
            SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}
//ZAVRSENO POLAGANJE


      I ovo SendClientMessage neradi ni ta prva Dobrodosli na polaganje a takodje' ni ostale,u cemu je problem?

Hvala na pomoci
leongrdic
3
Hustler
26. Dec. 2011.
Jel navedeni kod iz OnPlayerEnterCheckponit ili??
#Electro^
3
Hustler
26. Dec. 2011.
Ajde daj nam komandu sa kojom pokreces sve to, ili taj deo gde kad ukucas naprimer nesto pokrene sve ostalo...
SEJFO
5
Godfather
26. Dec. 2011.
#Electro^ wrote on December 26, 2011, 3:53 pm:
Ajde daj nam komandu sa kojom pokreces sve to, ili taj deo gde kad ukucas naprimer nesto pokrene sve ostalo...


Evo komanda:

if(strcmp(cmd, "/buydriving", true) == 0)
  {
     if(IsPlayerConnected(playerid))
         {
        if(IsPlayerInRangeOfPoint(playerid, 3,1490.3195,1305.6976,1093.2964))
            {
              if(PlayerInfo == 0)
           {
               if(GetPlayerMoney(playerid) < 100)
               {
                     SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca za vozacku dozvolu");
                     return 1;
              }
              else
              {
                     SendClientMessage(playerid, COLOR_GREEN, "Uplatili ste $250 za polaganje");
                     SafeGivePlayerMoney(playerid, -250);
                     SetPlayerPos(playerid, -2047.386840,-108.161804,35.243465);
                     SetPlayerInterior(playerid,0);
                     SetPlayerVirtualWorld(playerid,0);
                     ObjektiZaPolaganje(playerid);
                 DisablePlayerCheckpoint(playerid);
                 SetPlayerCheckpoint(playerid,-2019.0187,-168.3068,35.0365,6);
                   CP = 1000;
                   IgracPolaze = 1;
              }
           }
           else
           {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, " Vec imate vozacku dozvolu");
              return 1;
           }
        }
     }
       return 1;

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha