pomoc

1,238
pregleda
6
postova
ivicaosk
4
Made Man
4. Avg. 2010.
evo napravio sam bandu sve ok i sada ocu ubacit tuning tj ubacim ga sve ubacim i kada idem tunirati pise mi ovo
You are not allowed to modify/tune this vehicle
vec se 2 sata mucim sa tim sranjetom i nmg rijesit a na drugom modu mi radi :S
pliz help
LordShigi
5
Crime Lord
4. Avg. 2010.
Bez koda nista. Ali mogu probat na slijepo.

Jel si preselio array koji sadrži ideve vozila, ako nemas array kako odredujes koji se auto moze tunati?
ivicaosk
4
Made Man
4. Avg. 2010.
eo kod komande
if(strcmp(cmd,"/tuniraj",true)==0)
{
       if(PlayerToPoint(5.0,playerid, 1356.2876,-1628.0840,13.6099))
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
TogglePlayerControllable(playerid,false);
  ModCar(playerid);
}
else {
  return SendClientMessage(playerid, COLOR_RED, " You cannot modify/tune a car unless you are the driver.");
}
return 1;
}
return 0;
}

a evo modcar
forward ModCar(playerid);
public ModCar(playerid) {
switch(modelid) {
/*
        case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
426, 547, 405, 409, 550, 566, 540, 421, 529,431,438,437,420,525,552,416,433,427,490,528,
407,544,470,598,596,599,601,428,499,609,524,578,486,406,573,455,588,403,514,423,
414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558: {
*/
            case 445,602,429,496,422,401,518,402,541,438,527,415,542,589,480,507,585,419,587,533,526,466,492,474,579,545,411,546,400,517,410,551,500,418,516,467,404,603,600,426,436,547,489,479,442,475,405,458,580,439,409,550,506,566,549,420,451,540,491,412,478,421,529,555,477,562,565,559,561,560,558,536,575,534,567,535,576: {
    ShowMenuForPlayer(TuningMenu, playerid);
//     TogglePlayerControllable(playerid,false);
SendClientMessage(playerid, COLOR_WHITE, " Select an item and push the SPACEBAR to approve.");
}
default: SendClientMessage(playerid,COLOR_RED," You are not allowed to modify/tune this vehicle");
}
return 1;
}

kad to upisem onda mi pise
You are not allowed to modify/tune this vehicle
:S
ajd ak os dodaj me na msn icojug2@hotmai.com mozda ce bit lakse
elmedin
5
Kingpin
4. Avg. 2010.
Hmm... pa kaže ti da nemoÅ¡ tunirati auto jer si vozač, vjervovatno si stavio da vozač ne može tunirat 😛 tako sam povezo ovo dvoje 😄 :
		if(playerstate == PLAYER_STATE_DRIVER) {

SendClientMessage(playerid, COLOR_RED, " You cannot modify/tune a car unless you are the driver.");
bero
5
Underboss
4. Avg. 2010.
°°LøpεȤ°° wrote on August 4, 2010, 7:16 pm:
eo kod komande
kad to upisem onda mi pise
You cannot modify/tune a car unless you are the driver
:S
ajd ak os dodaj me na msn icojug2@hotmai.com mozda ce bit lakse

	if(strcmp(cmd,"/tuniraj",true)==0)
{
        if(PlayerToPoint(5.0,playerid, 1356.2876,-1628.0840,13.6099))
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
TogglePlayerControllable(playerid,false);
  ModCar(playerid);
}
else

{
SendClientMessage(playerid, COLOR_RED, " You cannot modify/tune a car unless you are the driver.");
}
return 1;
}


Probaj ovako: http://pastebin.com/BPFgD5K6
ivicaosk
4
Made Man
4. Avg. 2010.
Quote from August 4, 2010, 7:23 pm:
Hmm... pa kaže ti da nemoÅ¡ tunirati auto jer si vozač, vjervovatno si stavio da vozač ne može tunirat 😛 tako sam povezo ovo dvoje 😄 :
		if(playerstate == PLAYER_STATE_DRIVER) {

SendClientMessage(playerid, COLOR_RED, " You cannot modify/tune a car unless you are the driver.");

to je da moze SAMO vozac***

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha