Jump to content

Gireada

V.I.P
  • Posts

    2.689
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Gireada

  1. Sigur lui nu o sai mearga deoarece vehiculul trebuie respaunat pentru asi face efectul Ai sistemul de vehicule buguit
  2. [pawn]if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LordMan { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } if(PlayerInfo[playerid][pCarBan] == 1) { SendClientMessage(playerid, COLOR_GREY, " You'r banned to use /v commands ! "); return 1; } if(PlayerInfo[playerid][pLevel] >= 3 && PlayerInfo[playerid][pConnectTime] >= 36) { new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, color, create"); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new carid = GetPlayerVehicleID(playerid); if(carid == PlayerInfo[playerid][pCar]) { new Float:x,Float:y,Float:z; new Float:a; GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); GetVehicleZAngle(carid, a); CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; SetVehiclePos(carid, x, y, z); SetVehicleZAngle(carid, a); format(string, sizeof(string), "You have saved your vehicle at the position %f.01, %f.01, %f.01, Remember it, it will respawn here!",x,y,z); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SaveCar(carid); SetVehicleToRespawn(carid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY,"* You don't have a vehicle to respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } if(GetPlayerMoney(playerid) < 50000) { SendClientMessage(playerid, COLOR_GREY, " Nu ai suficienti bani!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); new Float:x, Float:y, Float:z, Float:a; if(CarInfo[vehid][cID] == PlayerInfo[playerid][pCar]) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; ChangeVehicleColor(vehid, color1, color2); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, a); GivePlayerMoney(playerid, -50000); SendClientMessage(playerid, COLOR_WHITE, "Ti-ai modificat culoarea!"); SaveCar(vehid);SetVehicleToRespawn(vehid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"create",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new car = 0; if(PlayerInfo[playerid][pCar] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* You already own a car!"); for(new h = 760; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 1300; } } new Float:AX,Float:AY,Float:AZ,Float:Angle; GetPlayerPos(playerid, AX,AY,AZ); GetPlayerFacingAngle(playerid, Angle); format(string, 128, "cars/%d.ini", car); new playername2[MAX_PLAYER_NAME]; playername2 = PlayerName(playerid); if(dini_Exists(string)) { CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } else { dini_Create(string); CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } PlayerInfo[playerid][pCar] = car; ownedcar[car] = CreateVehicle(522,CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],CarInfo[car][cAngle],CarInfo[car][cColorOne],CarInfo[car][cColorTwo],300); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehicle to view the vehicle manual!"); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget where you placed you'r new ~b~car!", 5000, 3); } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: color, park, create"); return 1; } }[/pawn] else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa ai level 3 si 36 ore pe server!"); return 1; } } return 1; }[/pawn]
  3. Gireada

    Problema

    Citeste regulamentul, nu avem nevoie de fa tau posteaza liniile.
  4. Gireada

    Comanda

    La OnPlayerDeath pui [pawn]if(DM[playerid] == 1) { new rand = random(sizeof(RandomPlayerSpawns)); SetPlayerPos(playerid, RandomPlayerSpawnsMinigun[rand][0],RandomPlayerSpawnsMinigun[rand][1], RandomPlayerSpawnsMinigun[rand][2]); return 1; }[/pawn]
  5. 1.Trebuia doar sa cauti pe google. 2.Ai gresit sectiune aici este de probleme legate de samp.
  6. Fa update la pluginul streamer. Si sterge strock. Citeste regulamentul inainte de a posta
  7. Doarece trebuie sa introduci FS-ul in GameMode
  8. La prima eroare citeste parametrii functiei CreateVehicle
  9. Incearca asa [pawn]if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LordMan { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } if(PlayerInfo[playerid][pCarBan] == 1) { SendClientMessage(playerid, COLOR_GREY, " You'r banned to use /v commands ! "); return 1; } if(PlayerInfo[playerid][pLevel] >= 3 && PlayerInfo[playerid][pConnectTime] >= 36) { new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, color, create"); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new carid = GetPlayerVehicleID(playerid); if(carid == PlayerInfo[playerid][pCar]) { new Float:x,Float:y,Float:z; new Float:a; GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); GetVehicleZAngle(carid, a); CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; SetVehiclePos(carid, x, y, z); SetVehicleZAngle(carid, a); format(string, sizeof(string), "You have saved your vehicle at the position %f.01, %f.01, %f.01, Remember it, it will respawn here!",x,y,z); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SaveCar(carid); SetVehicleToRespawn(carid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY,"* You don't have a vehicle to respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } if(GetPlayerMoney(playerid) < 50000) { SendClientMessage(playerid, COLOR_GREY, " Nu ai suficienti bani!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); new Float:x, Float:y, Float:x, Float:a; if(CarInfo[vehid][cID] == PlayerInfo[playerid][pCar]) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; ChangeVehicleColor(vehid, color1, color2); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, a); GivePlayerMoney(playerid, -50000); SendClientMessage(playerid, COLOR_WHITE, "Ti-ai modificat culoarea!"); SaveCar(vehid);SetVehicleToRespawn(vehid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"create",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new car = 0; if(PlayerInfo[playerid][pCar] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* You already own a car!"); for(new h = 760; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 1300; } } new Float:AX,Float:AY,Float:AZ,Float:Angle; GetPlayerPos(playerid, AX,AY,AZ); GetPlayerFacingAngle(playerid, Angle); format(string, 128, "cars/%d.ini", car); new playername2[MAX_PLAYER_NAME]; playername2 = PlayerName(playerid); if(dini_Exists(string)) { CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } else { dini_Create(string); CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } PlayerInfo[playerid][pCar] = car; ownedcar[car] = CreateVehicle(522,CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],CarInfo[car][cAngle],CarInfo[car][cColorOne],CarInfo[car][cColorTwo],300); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehicle to view the vehicle manual!"); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget where you placed you'r new ~b~car!", 5000, 3); } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: color, park, create"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa ai level 3 si 36 ore pe server!"); return 1; } } return 1; }[/pawn]
  10. Gireada

    [MAP]Cartier Ls.

    Si eu vazut la fel, dar daca este ideea ta 5/5
  11. Gireada

    Problema

    Nu am gasit nici unul. Ori iti lispeste o paranteza sau updateaza includerele pe 0.3x
  12. Eu ce ziceam ca o sa postezi tot gm-ul tau pe bucati. [pawn]if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) // By LordMan { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } if(PlayerInfo[playerid][pCarBan] == 1) { SendClientMessage(playerid, COLOR_GREY, " You'r banned to use /v commands ! "); return 1; } if(PlayerInfo[playerid][pLevel] >= 3 && PlayerInfo[playerid][pConnectTime] >= 36) { new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: park, color, create"); return 1; } else if(strcmp(x_nr,"park",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new carid = GetPlayerVehicleID(playerid); if(carid == PlayerInfo[playerid][pCar]) { new Float:x,Float:y,Float:z; new Float:a; GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); GetVehicleZAngle(carid, a); CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; SetVehiclePos(carid, x, y, z); SetVehicleZAngle(carid, a); format(string, sizeof(string), "You have saved your vehicle at the position %f.01, %f.01, %f.01, Remember it, it will respawn here!",x,y,z); SendClientMessage(playerid, TEAM_GROVE_COLOR, string); SaveCar(carid); SetVehicleToRespawn(carid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"color",true) == 0) { if(PlayerInfo[playerid][pCar] == 9999) { SendClientMessage(playerid, COLOR_GREY,"* You don't have a vehicle to respray."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v color [ColorOneID] [ColorTwoID] (50.000$ cost)"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } if(GetPlayerMoney(playerid) < 50000) { SendClientMessage(playerid, COLOR_GREY, " Nu ai suficienti bani!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); new Float:x, Float:y, Float:x, Float:a; if(CarInfo[vehid][cID] == PlayerInfo[playerid][pCar]) { CarInfo[vehid][cColorOne] = color1; CarInfo[vehid][cColorTwo] = color2; ChangeVehicleColor(vehid, color1, color2); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, a); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, a); GivePlayerMoney(playerid, -50000); SendClientMessage(playerid, COLOR_WHITE, "Ti-ai modificat culoarea!"); SaveCar(vehid);SetVehicleToRespawn(vehid); } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in your car."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You'r not in a car."); return 1; } return 1; } else if(strcmp(x_nr,"create",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: create [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new car = 0; if(PlayerInfo[playerid][pCar] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* You already own a car!"); for(new h = 760; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 1300; } } new Float:AX,Float:AY,Float:AZ,Float:Angle; GetPlayerPos(playerid, AX,AY,AZ); GetPlayerFacingAngle(playerid, Angle); format(string, 128, "cars/%d.ini", car); new playername2[MAX_PLAYER_NAME]; playername2 = PlayerName(playerid); if(dini_Exists(string)) { CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } else { dini_Create(string); CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], playername2, 0, strlen(playername2), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = 522; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } PlayerInfo[playerid][pCar] = car; ownedcar[car] = CreateVehicle(522,CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],CarInfo[car][cAngle],CarInfo[car][cColorOne],CarInfo[car][cColorTwo],300); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehicle to view the vehicle manual!"); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget where you placed you'r new ~b~car!", 5000, 3); } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: color, park, create"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa ai level 3 si 36 ore pe server!"); return 1; } } return 1; }[/pawn]
  13. Gireada

    Problema

    Iti lipseste un includer.
  14. Dacaface cum zici tu nu o sai mearga gm-ul. Cautati includerul lipsa
  15. Sterge ultima | Asa ai tu |) Asa trebuie )
  16. Posibil sa flodeze cineva serverul.
  17. Si tia iesit asa? SetPlayerPos(playerid,1305.2646,1483.7552,10.8203);
  18. Gireada

    Idee

    Acesta este un forum de samp nu de muzica.
  19. Trebuie sa folosesti functia strcat
  20. Citeste cu atentie tutorialul asta
  21. Va voi explica cum sa folositi aceasta functie. IsPlayerInRangeOfPoint este o fuctie care verifica daca un jucator este in apropiere de un punct. Parametrii functiei: IsPlayerInRangeOfPoint(id jucaotr, distanta dintre punct si tine, coordonata punctx, coordonata puncty, coordonata punctz) Pentru a afla coordonatele unui punct trebuie sa urmati urmatorul tutorial: click Aceasta functie este mult mai buna decat functia PlayerToPoint deoarece IsPlayerInRangeOfPoint a fost creeata de Developerii SAMP. Exemple unde le poti folosi: 1. La o comanda [pawn]CMD:comanda(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 7.0, coordx,coordy, coordz)) { //ce face comanda } return 1; }[/pawn] 2.La un CallBack [pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys & KEY_SECONDARY_ATTACK) { //ce anume face } return 1; }[/pawn] Tutorial pentru crazyzee care nu stie sa schimbe o coordonata, si se baga sa editeze un gamemode
  22. Gireada

    Cum setez

    Pasi pentru a reusi sa faci asta: 1.Cauti interiorul 2.Daca e vreo comanda cauti in gm comanda si pui la ea SetPlayerInterior(playerid, interiorid); 3.Daca e pe vreo tasta de duci la OnPlayerKeyStateChange si cauti tasta, acolo pui SetPlayerInterior(playerid, interiorid); Pentru a gasi interioare cauta pe google Interioare samp
  23. Gireada

    Intrebare!

    stii ce e un stock? e un fel de public fara forward. Acela il pui la sfarsitul gm-ului. iar StegeChatJucator(playerid, 30); o pui in comanda adika asa doarece ea este o functie acum [pawn]CMD:clearchat(playerid, params[]) { if(!IsPlayerAdmin(playerid) return SendClientMessage(playerid,COLOR_HERE,"* Ai nevoie de RCON pentru aceasta comanda"); StegeChat(30);//sterge 30 de linii tuturor jucatorilor return 1; } stock StergeChat(linii) { for(new i=1;i<=linii;i++) { SendClientMessageToAll(0xFFFFFFFF, " "); } return 1; }[/pawn]
  24. ia arata linia sa vad ce prostie ai scris.
  25. Iati asta nativchecker Ai trecut pe dini sau yini.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.