P:Raceovi

Započeo Vilko, Septembar 15, 2009, 14:30:51 POSLE PODNE

prethodna tema - sledeća tema

Pinky028 i 8 gostiju pregledaju ovu temu.

Trebam raceove : street,drift,moto (nrg) i jso neke ali da imaju komande i sve fino napravljeno sam da ubacim jer nisam skripter a neznam kako da ubacim one kodove poput

F1
if(strcmp(cmd, "/xstreet", true) == 0)
{
PlayerPos(playerid, 977.9678,-3380.5745,4.7747);
SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported to the F1 Street");
}

niko ti nece dati cistu skritpu xD ali ja ti dam sta sam ja napravio ;)

//-----------------------------------NRG--------------------------------------------
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1854.2563,846.4569,35.0569, 10.0); }
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1673.5345,846.2385,24.6948, 10.0); }
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1560.8887,844.1173,7.0391, 10.0); }
else if(CP[playerid] == 303) { CP[playerid] = 304; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1526.5807,884.1758,7.0391, 10.0); }
else if(CP[playerid] == 304) { CP[playerid] = 305; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1617.6240,925.2701,7.6576, 10.0); }
else if(CP[playerid] == 305) { CP[playerid] = 306; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1808.1826,926.7799,24.7422, 10.0); }
else if(CP[playerid] == 306) { CP[playerid] = 307; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1981.3612,926.8416,45.6645, 10.0); }
else if(CP[playerid] == 307) { CP[playerid] = 308; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2001.6895,886.9785,45.2969, 10.0); }
   else if(CP[playerid] == 308)
{
   CP[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
   GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Organizator : %s je upravo zavrsio Utrku. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
   }


//-------------------nrg--------------------------------
   AddStaticVehicleEx(522,-1987.7423,902.2488,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1983.1742,902.4966,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1978.3529,902.3719,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1974.3214,902.3315,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.3234,902.6776,45.2031,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.8687,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.6716,0,0,900);
AddStaticVehicleEx(522,-1976.4976,866.0451,45.2031,359.6716,0,0,900);
   AddStaticVehicleEx(522,-1983.2261,866.0992,45.2031,353.3213,0,0,900);
   AddStaticVehicleEx(522,-1986.3667,865.4835,45.2031,355.9951,0,0,900);
CreateObject(972, -1972.061279, 890.428467, 44.200005, 0.0000, 0.0000, 0.0000);
   CreateObject(972, -1972.135864, 873.428467, 44.200005, 0.0000, 0.0000, 0.0000);
   CreateObject(972, -1981.157593, 907.769836, 44.200005, 0.0000, 0.0000, 270.6186);
   CreateObject(972, -1976.822388, 860.274963, 44.794777, 0.0000, 0.0000, 90.2409);
   CreateObject(993, -1991.241699, 867.704468, 47.186672, 0.0000, 0.0000, 90.2409);
   CreateObject(993, -1991.290527, 874.914551, 47.173553, 0.0000, 0.0000, 90.2409);
   CreateObject(993, -1991.369629, 899.373230, 47.261719, 0.0000, 0.0000, 90.2409);
   CreateObject(993, -1991.328979, 893.421692, 47.286720, 0.0000, 0.0000, 89.3814);
   gate1 = CreateObject(969, -1991.581177, 884.492920, 47.201939, 0.0000, 0.0000, 90.0000);
   gate2 = CreateObject(969, -1983.659912, 845.697510, 44.980431, 0.0000, 0.0000, 90.0000);


// --------------------------------NRG---------------------------------
if (strcmp("/nrghelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|~|~|Commands|~|~|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrghelp - Ova komanda stvara ovo ;D.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/clearchat - Ova komanda ocisti chat.");
       SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgs - Igraci startaju race.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgp - Dize se ogradiza za start.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrg - Poziva igraca na startnu liniju.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgo - Otvara garazu sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgz - Zatvara vrata sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
       return 1;
}
if(strcmp(cmdtext,"/clearchat",true)==0)
{
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
return 1;
}
   if (strcmp(cmd, "/setnrg", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setnrg [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, -1990.8082,845.3881,45.6682,50.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), " ORGANIZATOR %s je pozvao %s na NRG Race strat liniju!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
if(strcmp(cmdtext,"/nrgs",true)==0)
{
       MoveObject(gate2,-1983.595093, 845.671875, 42.480431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgp",true)==0)
{
       MoveObject(gate2,-1983.659912, 845.697510, 44.980431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgo",true)==0)
{
       MoveObject(gate1,-1991.512939, 884.430969, 40.476517,5);
return 1;
}
if(strcmp(cmdtext,"/nrgz",true)==0)
{
       MoveObject(gate1,-1991.581177, 884.492920, 47.201939,5);
return 1;
}
if(strcmp(cmd, "/gotonrg", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1990.8082,845.3881,45.6682);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -1990.8082,845.3881,45.6682);
}
SendClientMessage(playerid, COLOR_GRAD1, "   Teleportiran si !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Nisi autoriziran za koristenje te komande!");
}
}
return 1;
}


new gate1;
new gate2;
new gate3;
new gate4;
new gate5;
Poslednja Izmena: Septembar 15, 2009, 15:03:56 POSLE PODNE od galeb

======ஜ۩۞۩ஜ======
â—,,███â–"â–' FucK oFFâ–'â–"███►
======ஜ۩۞۩ஜ======



:D Fala kurcu imamo i nekih pametnih ljudi na forumu :D

Posjetite:
TUTORIALS 4 ALL NA HRVATSKOM










Citat: Bebek poslato Septembar 15, 2009, 16:45:57 POSLE PODNE
Pa kad neznam ubacit  :( :(
??? pa jednostavno je :P

1. ovo :


//-----------------------------------NRG--------------------------------------------
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1854.2563,846.4569,35.0569, 10.0); }
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1673.5345,846.2385,24.6948, 10.0); }
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1560.8887,844.1173,7.0391, 10.0); }
else if(CP[playerid] == 303) { CP[playerid] = 304; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1526.5807,884.1758,7.0391, 10.0); }
else if(CP[playerid] == 304) { CP[playerid] = 305; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1617.6240,925.2701,7.6576, 10.0); }
else if(CP[playerid] == 305) { CP[playerid] = 306; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1808.1826,926.7799,24.7422, 10.0); }
else if(CP[playerid] == 306) { CP[playerid] = 307; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1981.3612,926.8416,45.6645, 10.0); }
else if(CP[playerid] == 307) { CP[playerid] = 308; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2001.6895,886.9785,45.2969, 10.0); }
    else if(CP[playerid] == 308)
{
    CP[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Organizator : %s je upravo zavrsio Utrku. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
    }


stavis u

public onplayerentercheckpoint

ispod ona 2 new ...


onda 2.:

ovo:

//-------------------nrg--------------------------------
    AddStaticVehicleEx(522,-1987.7423,902.2488,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1983.1742,902.4966,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1978.3529,902.3719,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1974.3214,902.3315,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.3234,902.6776,45.2031,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.8687,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.6716,0,0,900);
AddStaticVehicleEx(522,-1976.4976,866.0451,45.2031,359.6716,0,0,900);
    AddStaticVehicleEx(522,-1983.2261,866.0992,45.2031,353.3213,0,0,900);
    AddStaticVehicleEx(522,-1986.3667,865.4835,45.2031,355.9951,0,0,900);
CreateObject(972, -1972.061279, 890.428467, 44.200005, 0.0000, 0.0000, 0.0000);
    CreateObject(972, -1972.135864, 873.428467, 44.200005, 0.0000, 0.0000, 0.0000);
    CreateObject(972, -1981.157593, 907.769836, 44.200005, 0.0000, 0.0000, 270.6186);
    CreateObject(972, -1976.822388, 860.274963, 44.794777, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.241699, 867.704468, 47.186672, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.290527, 874.914551, 47.173553, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.369629, 899.373230, 47.261719, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.328979, 893.421692, 47.286720, 0.0000, 0.0000, 89.3814);
    gate1 = CreateObject(969, -1991.581177, 884.492920, 47.201939, 0.0000, 0.0000, 90.0000);
    gate2 = CreateObject(969, -1983.659912, 845.697510, 44.980431, 0.0000, 0.0000, 90.0000);

stavis na kraj ongamemodeinit-a...

onda 3.

nadi

public onplayercommand


i ispod svih tamo new stavis ovo:


// --------------------------------NRG---------------------------------
if (strcmp("/nrghelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|~|~|Commands|~|~|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrghelp - Ova komanda stvara ovo ;D.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/clearchat - Ova komanda ocisti chat.");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgs - Igraci startaju race.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgp - Dize se ogradiza za start.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrg - Poziva igraca na startnu liniju.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgo - Otvara garazu sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgz - Zatvara vrata sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
        return 1;
}
if(strcmp(cmdtext,"/clearchat",true)==0)
{
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
return 1;
}
    if (strcmp(cmd, "/setnrg", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setnrg [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, -1990.8082,845.3881,45.6682,50.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), " ORGANIZATOR %s je pozvao %s na NRG Race strat liniju!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
if(strcmp(cmdtext,"/nrgs",true)==0)
{
        MoveObject(gate2,-1983.595093, 845.671875, 42.480431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgp",true)==0)
{
        MoveObject(gate2,-1983.659912, 845.697510, 44.980431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgo",true)==0)
{
        MoveObject(gate1,-1991.512939, 884.430969, 40.476517,5);
return 1;
}
if(strcmp(cmdtext,"/nrgz",true)==0)
{
        MoveObject(gate1,-1991.581177, 884.492920, 47.201939,5);
return 1;
}
if(strcmp(cmd, "/gotonrg", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1990.8082,845.3881,45.6682);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -1990.8082,845.3881,45.6682);
}
SendClientMessage(playerid, COLOR_GRAD1, "   Teleportiran si !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Nisi autoriziran za koristenje te komande!");
}
}
return 1;
}


4. na pocetak skripte di su ti svi new ...

stavis

new gate1;
new gate2;


i eto pritisni compile,nebi trebalo bit errora...
upali server i uzivaj xD

ma plzzz clickajte malooo :'(

A neradi mi kad neznam ajde fino napisi ovak

recimo

Ovo stavi u onplayercommand  ( code:) i kod

pa ovo stavi tamo jer nekuzim stavis kod pa ovo pa stavis tekst pa kod negdje nesot stavi stavi po redu jer sam novi u skriptanju!

e vako

ako imas GF GM

u pawnu nadi kao slicicu dvogled...

i u nju upisi

public OnPlayerEnterCheckpoint(playerid)

i ispod ovoga:


new string[128];
new name[MAX_PLAYER_NAME];


kopiraj


//-----------------------------------NRG--------------------------------------------
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1854.2563,846.4569,35.0569, 10.0); }
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1673.5345,846.2385,24.6948, 10.0); }
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1560.8887,844.1173,7.0391, 10.0); }
else if(CP[playerid] == 303) { CP[playerid] = 304; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1526.5807,884.1758,7.0391, 10.0); }
else if(CP[playerid] == 304) { CP[playerid] = 305; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1617.6240,925.2701,7.6576, 10.0); }
else if(CP[playerid] == 305) { CP[playerid] = 306; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1808.1826,926.7799,24.7422, 10.0); }
else if(CP[playerid] == 306) { CP[playerid] = 307; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1981.3612,926.8416,45.6645, 10.0); }
else if(CP[playerid] == 307) { CP[playerid] = 308; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2001.6895,886.9785,45.2969, 10.0); }
    else if(CP[playerid] == 308)
{
    CP[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Organizator : %s je upravo zavrsio Utrku. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
    }


pa ce ti izgledat ovako:


public OnPlayerEnterCheckpoint(playerid)
{
new string[128];
new name[MAX_PLAYER_NAME];
//-----------------------------------NRG--------------------------------------------
else if(CP[playerid] == 300) { CP[playerid] = 301; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1854.2563,846.4569,35.0569, 10.0); }
else if(CP[playerid] == 301) { CP[playerid] = 302; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1673.5345,846.2385,24.6948, 10.0); }
else if(CP[playerid] == 302) { CP[playerid] = 303; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1560.8887,844.1173,7.0391, 10.0); }
else if(CP[playerid] == 303) { CP[playerid] = 304; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1526.5807,884.1758,7.0391, 10.0); }
else if(CP[playerid] == 304) { CP[playerid] = 305; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1617.6240,925.2701,7.6576, 10.0); }
else if(CP[playerid] == 305) { CP[playerid] = 306; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1808.1826,926.7799,24.7422, 10.0); }
else if(CP[playerid] == 306) { CP[playerid] = 307; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1981.3612,926.8416,45.6645, 10.0); }
else if(CP[playerid] == 307) { CP[playerid] = 308; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2001.6895,886.9785,45.2969, 10.0); }
    else if(CP[playerid] == 308)
{
    CP[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Organizator : %s je upravo zavrsio Utrku. ", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
    }


i onda nadi sa dvogledom ovo:


AddStaticVehicleEx(421,-2247.4382,667.7339,49.1645,359.8687,50,50,60000); // Washington Yakuza



i ispod toga kopiraj ovo:


//-------------------nrg--------------------------------
    AddStaticVehicleEx(522,-1987.7423,902.2488,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1983.1742,902.4966,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1978.3529,902.3719,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1974.3214,902.3315,45.2097,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.3234,902.6776,45.2031,178.4822,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.8687,0,0,900);
AddStaticVehicleEx(522,-1971.9628,865.7813,45.2031,359.6716,0,0,900);
AddStaticVehicleEx(522,-1976.4976,866.0451,45.2031,359.6716,0,0,900);
    AddStaticVehicleEx(522,-1983.2261,866.0992,45.2031,353.3213,0,0,900);
    AddStaticVehicleEx(522,-1986.3667,865.4835,45.2031,355.9951,0,0,900);
CreateObject(972, -1972.061279, 890.428467, 44.200005, 0.0000, 0.0000, 0.0000);
    CreateObject(972, -1972.135864, 873.428467, 44.200005, 0.0000, 0.0000, 0.0000);
    CreateObject(972, -1981.157593, 907.769836, 44.200005, 0.0000, 0.0000, 270.6186);
    CreateObject(972, -1976.822388, 860.274963, 44.794777, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.241699, 867.704468, 47.186672, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.290527, 874.914551, 47.173553, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.369629, 899.373230, 47.261719, 0.0000, 0.0000, 90.2409);
    CreateObject(993, -1991.328979, 893.421692, 47.286720, 0.0000, 0.0000, 89.3814);
    gate1 = CreateObject(969, -1991.581177, 884.492920, 47.201939, 0.0000, 0.0000, 90.0000);
    gate2 = CreateObject(969, -1983.659912, 845.697510, 44.980431, 0.0000, 0.0000, 90.0000);


i onda opet nadi sa dvogledom ovo:

public OnPlayerCommandText(playerid, cmdtext[])

i ispod ovoga:


public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);


kopiraj ovo:


// --------------------------------NRG---------------------------------
if (strcmp("/nrghelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|~|~|Commands|~|~|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrghelp - Ova komanda stvara ovo ;D.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/clearchat - Ova komanda ocisti chat.");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgs - Igraci startaju race.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgp - Dize se ogradiza za start.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrg - Poziva igraca na startnu liniju.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgo - Otvara garazu sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/nrgz - Zatvara vrata sa NRG-ovima.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
        return 1;
}
if(strcmp(cmdtext,"/clearchat",true)==0)
{
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_WHITE," ");
return 1;
}
    if (strcmp(cmd, "/setnrg", true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setnrg [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, -1990.8082,845.3881,45.6682,50.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), " ORGANIZATOR %s je pozvao %s na NRG Race strat liniju!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
if(strcmp(cmdtext,"/nrgs",true)==0)
{
        MoveObject(gate2,-1983.595093, 845.671875, 42.480431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgp",true)==0)
{
        MoveObject(gate2,-1983.659912, 845.697510, 44.980431,50.000);
return 1;
}
if(strcmp(cmdtext,"/nrgo",true)==0)
{
        MoveObject(gate1,-1991.512939, 884.430969, 40.476517,5);
return 1;
}
if(strcmp(cmdtext,"/nrgz",true)==0)
{
        MoveObject(gate1,-1991.581177, 884.492920, 47.201939,5);
return 1;
}
if(strcmp(cmd, "/gotonrg", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1990.8082,845.3881,45.6682);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -1990.8082,845.3881,45.6682);
}
SendClientMessage(playerid, COLOR_GRAD1, "   Teleportiran si !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Nisi autoriziran za koristenje te komande!");
}
}
return 1;
}


i na dvogledu opet nadi ovo:

new Security = 0;

i ispod toga kopiraj ovo:

new gate1;
new gate2;

ma plzzz clickajte malooo :'(

turker_kc

a ako on zeli sa SetPlayerRaceCheckpoint ?  ;)


nazalost :s

ma plzzz clickajte malooo :'(

turker_kc

RaceCheckpoint ti je checkpoint koji su sebi ima strelicu (ako je 0, ima finish flag ako je 1, prazan ako je 2, krug ako je 3 i krug finish ako je 4)

http://wiki.sa-mp.com/wiki/SetPlayerRaceCheckpoint

Vidjan da to nije za mene  :D Nec ja s tim se zezat imam street rally motocross (cross motori) avio race i bulletrace nasao na netu i stavio FS a ovo neznam kak napravit kad niko nece na PP da posalje pravo

Isti slucaj i s tobom..care prvo nauci osnove skriptanja,a onda pocni pravit polako ostalo..ima odlicnih tutova ovdje koji vam mogu pomoci..a evo takodjer oni su ti pomogli u prethodnim postovima,samo malo logicki pocnes razmisljat i skontat ces..pogledaj djurin race i razmisli malo...
A jos bolje bi bilo da sam pocnes razmisljat..mnogi na ovom forumu(ne odnosi se na tebe) bi htjeli na gotovo da dobiju sve..pa nece niko za vas praviti,fino platis il nekako se dogovorimo pa onda..ovdje su osnovne pomoci

poz


Svi koji igraju CS-a neka nam se pridruze (:

Citat: Bebek poslato Septembar 15, 2009, 14:30:51 POSLE PODNE
Trebam raceove : street,drift,moto (nrg) i jso neke ali da imaju komande i sve fino napravljeno sam da ubacim jer nisam skripter a neznam kako da ubacim one kodove poput

F1
if(strcmp(cmd, "/xstreet", true) == 0)
{
PlayerPos(playerid, 977.9678,-3380.5745,4.7747);
SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported to the F1 Street");
}

momak koji je tebi k ..."TREBAM RACOVE;ali da imaju komande;sve fino napravljeno" de procitaj sta si napiso,iritirate me s tim postovima,pa vamo niko tvoj sluga da radi aj da si napiso moze mi neko naporavit,neg ti trebam.Treba ti vjerovatno za server tako da piši kuci propalo :mad: :mad:

[NUDIM ]
Gang-Rush server TDM besplatno


Citat: [CH]pliva♫♪ poslato Septembar 16, 2009, 23:09:03 POSLE PODNE
Citat: Bebek poslato Septembar 15, 2009, 14:30:51 POSLE PODNE
Trebam raceove : street,drift,moto (nrg) i jso neke ali da imaju komande i sve fino napravljeno sam da ubacim jer nisam skripter a neznam kako da ubacim one kodove poput

F1
if(strcmp(cmd, "/xstreet", true) == 0)
{
PlayerPos(playerid, 977.9678,-3380.5745,4.7747);
SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported to the F1 Street");
}

momak koji je tebi k ..."TREBAM RACOVE;ali da imaju komande;sve fino napravljeno" de procitaj sta si napiso,iritirate me s tim postovima,pa vamo niko tvoj sluga da radi aj da si napiso moze mi neko naporavit,neg ti trebam.Treba ti vjerovatno za server tako da piši kuci propalo :mad: :mad:

bravo care,sto kazes iritira te..isti sam takav :S
ako ima neko lud napravit ce mu citav race


Svi koji igraju CS-a neka nam se pridruze (:

Johny mogu li ja znati tko si ti ?

malo me budi ovaj tvoj mail: [email protected]

panda sigurno nisi... ili mozda jesi ?