[pomoc]race-cp/imena ulica ispod minimape

Započeo DoN, Mart 04, 2011, 10:44:10 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

DoN

*

Skripta koju koristim:ravens/editujem
Detaljan opis problema:radim aero race..i ubacio sam cp-ove...i kad prozovem nekog na strat pokaze mu se cp..al ostali cp-ovi se ne pokazuju...cp-ove sam stavio pod public OnPlayerEnterCheckPoint..i znal neko kako da uklonim ime ulica sto pise ispod mini mape...
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0

Ako si koristio Race CP-ove, onda mora ić' pod OnPlayerEnterRaceCheckpoint.

Last nick: Paradox

DoN

*

evo kako sam stavljo
if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1817.8280,-2487.3362,13.1218,15.0); }
ako je lakse pod OnPlayerEnterRaceCheckPoint mozes mi objasniti kako da napravim ta dvije trake..mislim takmicar jedan i dva ima..pa neznam kako da napravim pod OnPlayerEnterRaceCheckPoint pa sam stavio OnPlayerEnterCheckPoint.....
Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0

Ista stvar. Daj mi samo tvoju komandu koja pokreće utrku i cijeli OnPlayerEnterCheckpoint callback.

Last nick: Paradox

DoN

*

evo cijeli OnPlayerEnterCheckPoint
public OnPlayerEnterCheckpoint(playerid)
{
new string[128];
new string2[128];
new name[MAX_PLAYER_NAME];
if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
{
   TaxiAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Dosli ste do odredista", 5000, 1);
TaxiCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
{
   BusAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Dosli ste do odredista", 5000, 1);
BusCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(CP[playerid]==1)
{
   if(IsPlayerInAnyVehicle(playerid))
   {
   PlayerInfo[playerid][pJackSkill] ++;
if(PlayerInfo[playerid][pJackSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Tvoj Car Jack Skill je sad Level 2, zaradit ces vise novca u manje vrijeme."); }
else if(PlayerInfo[playerid][pJackSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Tvoj Car Jack Skill je sad Level 3, zaradit ces vise novca u manje vrijeme."); }
else if(PlayerInfo[playerid][pJackSkill] == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Tvoj Car Jack Skill je sad Level 4, zaradit ces vise novca u manje vrijeme."); }
else if(PlayerInfo[playerid][pJackSkill] == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "* Tvoj Car Jack Skill je sad Level 5, zaradit ces vise novca u manje vrijeme."); }
new level = PlayerInfo[playerid][pJackSkill];
if(level >= 0 && level <= 50)
{
   new rand = random(sizeof(SELLCAR1));
   format(string, sizeof(string), "Prodao si auto za $%d, moras pricekati 20 minuta.", SELLCAR1[rand]);
SendClientMessage(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR1[rand]);
   PlayerInfo[playerid][pCarTime] = 1200;
}
else if(level >= 51 && level <= 100)
{
   new rand = random(sizeof(SELLCAR2));
   format(string, sizeof(string), "Prodao si auto za $%d, moras pricekati 18 minuta.", SELLCAR2[rand]);
SendClientMessage(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR2[rand]);
   PlayerInfo[playerid][pCarTime] = 1080;
}
else if(level >= 101 && level <= 200)
{
   new rand = random(sizeof(SELLCAR3));
   format(string, sizeof(string), "Prodao si auto za $%d, moras pricekati 16 minuta.", SELLCAR3[rand]);
SendClientMessage(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR3[rand]);
   PlayerInfo[playerid][pCarTime] = 960;
}
else if(level >= 201 && level <= 400)
{
   new rand = random(sizeof(SELLCAR4));
   format(string, sizeof(string), "Prodao si auto za $%d, moras pricekati 14 minuta.", SELLCAR4[rand]);
SendClientMessage(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR4[rand]);
   PlayerInfo[playerid][pCarTime] = 840;
}
else if(level >= 401)
{
   new money = 6000;
   format(string, sizeof(string), "Prodao si auto za $%d, moras pricekati 12 minuta.", money);
SendClientMessage(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, money);
   PlayerInfo[playerid][pCarTime] = 720;
}
GameTextForPlayer(playerid, "~y~Automobil prodan", 2500, 1);
CP[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
   SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
else
{
   GameTextForPlayer(playerid, "Nisi u autu", 5000, 1);
}
}
else
{
switch (gPlayerCheckpointStatus[playerid])
{
case CHECKPOINT_HOME:
   {
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Ti si~n~~y~Doma", 5000, 1);
   }
}
}
if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1817.8280,-2487.3362,13.1218,15.0); } //drugi cp
else if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1581.5696,-2488.3611,13.1214,15.0); } //Finish cp
else if(CP[playerid] == 201)
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
  GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "NATJECATELJ: %s Je upravo Zavrsio Street Race. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.1445,-2499.4771,13.1216,15.0); } //drugi cp
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1579.4556,-2499.2678,13.1214,15.0); } //Finish
else if(CP[playerid] == 301)
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
  GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "NATJECATELJ: %s Je upravo Zavrsio Street Race. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}

evo samo pocetak dje mi se nlazi cp-ovi za race.....
i evo komande

//SetRacer1 i 2
    if (strcmp(cmd, "/setracer1", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setracer1 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2039.1232,-2489.5615,13.1101,10.0);
CP[giveplayerid] = 200;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Street ORGANIZATOR %s je pozvao %s na Startnu liniju broj 1!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
    if (strcmp(cmd, "/setracer2", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setracer2 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2037.4750,-2499.1172,13.1206,10.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Street ORGANIZATOR %s je pozvao %s na Startnu linuju broj 2!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}

Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0


if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.1445,-2499.4771,13.1216,15.0); } //drugi cp
else if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1579.4556,-2499.2678,13.1214,15.0); } //Finish
else if(CP[playerid] == 201)

if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.1445,-2499.4771,13.1216,15.0); } //drugi cp
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1579.4556,-2499.2678,13.1214,15.0); } //Finish
else if(CP[playerid] == 301)


Ovo iznad zamijeni s ovim ispod:


if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.1445,-2499.4771,13.1216,15.0); } //drugi cp
else if(CP[playerid] == 201) { CP[playerid] = 202; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1579.4556,-2499.2678,13.1214,15.0); } //Finish
else if(CP[playerid] == 202)

if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.1445,-2499.4771,13.1216,15.0); } //drugi cp
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1579.4556,-2499.2678,13.1214,15.0); } //Finish
else if(CP[playerid] == 302)


Zabunio si se u brojevima.

Last nick: Paradox

DoN

*

Opet nece da pokaze drugi i treci CP :( :(
Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0