LTh_LeThaL
Membru-
Posts
121 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by LTh_LeThaL
-
Salut, am o problema la Serverul meu, pica de la ceva din GameMode si as dori sa stiu, asa ca am instalat CrashDetect insa cand pornesc Serverul imi da eroare in server_log; Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by plugins/crashdetect.so)) . Stie cineva de la ce e asta ?
-
Pune-ti JunkBuster 11 la Server
-
Adauga la dialogul care vrei cand apesi un buton sa te scoata astea; TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid);
-
Poti sa adaugi comanda asta pentru a iesit din masina if (strcmp(cmd, "/exitveh", true) ==0 ) { if(!IsPlayerInAnyVehicle(playerid)){return 1;} if(GetCreatorID(vehicleid)!=0) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } return 1; }
-
Poftim ti-am creat doar pana la prima factiune restul adaugi tu fix cum am facut eu schimband ID-ul factiunii si ID la skin-uri. if(strcmp(cmd, "/giverank", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /giverank [playerid/PartOfName] [1-6]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Poti da rank intre 1 si 6."); return 1; } if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); PlayerInfo[para1][pRank] = level; format(string, sizeof(string), "Liderul tau %s ti-a dat un rank nou", sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), "Tocmai i-ai dat membrului %s rankul %d.", giveplayer,level); SendClientMessage(playerid, COLOR_WHITE, string); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if(PlayerInfo[para1][pSex] == 1) { // Skinuri de Barbati if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 1 else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 2 else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 3 else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 4 else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 5 else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 6 } else if(PlayerInfo[para1][pSex] == 2) // Skin de femeie { PlayerInfo[para1][pChar] = 141; SetPlayerSkin(para1, SkinID); } } Tu continui cu Scriptul de la if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) si adaugi urmatoarele factiuni si Skinuri
-
Pai pe la ce ai adaugat nou sau ai sters a ramas o acolada inchisa } in plus undeva. Intr-un mod numarul acoladelor deschise trebuie sa fie egal cu cele inchise.
-
Ce vrei sa faca aceasta comanda ? Apropo foloseste Search poate gasesti.
-
Ai adaugat o } in plus pe undeva.
-
E draci, faci tu ceva gresit. Nu exista asa ceva
-
Sunt WARNING-uri, nu ERRORI. Sterge cuvantul respectiv de la linia respectiva deoarece nu este folosit si e tinut degeaba.
-
Adauga in Serverul 0.3C Fisierele ANNOUNCE , SA-MP SERVER , NPC si compileaza GameMode-ul cu PAWNO din Serverul 0.3D.
-
forward Speedo();
-
[HELP] Numere cu virgula ( 10000 >> 10,000 )
LTh_LeThaL replied to Seba97's question in Arhivă probleme
Da-i un Search cu Textul FormatMoney -
Sigur sunt bune coordonatele de unde dai /enter ?
-
Uite; if(strcmp(cmd, "/enter", true) == 0) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 { if (PlayerToPoint(3, playerid,289.8177,167.2616,1007.1719)) { SetPlayerPos(playerid,1507.6525,-1510.1477,13.5473); SetPlayerInterior(playerid,IDINT);//inlocuie cu id-u de la int } } else { SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu esti membru FBI."); } return 1; } if(strcmp(cmd, "/exit", true) == 0) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 { if (PlayerToPoint(3, playerid,1507.6525,-1510.1477,13.5473)) { SetPlayerPos(playerid,289.8177,167.2616,1007.1719); SetPlayerInterior(playerid,0); } } else { SendClientMessage(playerid, COLOR_WHITE,"Ne pare rau, dar nu esti membru FBI."); } return 1; }
-
Cand ai sters acele multe lucruri legate de HITMAN ai lasat o { in Plus.
-
Incearca sa numesti comanda altfel, de exemplu /enterfbi doar sa vezi daca functioneaza !
-
Daca mai ai probleme deschizi Topic
-
MA DECI, bagi comanda asta in GM ; if(strcmp(cmd, "/placeradar", true) == 0) { if (IsPlayerInAnyVehicle (playerid)) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { new CarID = GetPlayerVehicleID (playerid); if (VehRadarID [CarID] > -1) return 1; new Float: x, Float: y, Float: z, Float: a; GetVehiclePos (CarID, x, y, z); GetVehicleZAngle (CarID, a); SendClientMessage (playerid, COLOR_YELLOW, "Radar has been added successfully."); VehRadarID [CarID] = CreateObject (367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.0); AttachObjectToVehicle (VehRadarID [CarID], CarID, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0); for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerInVehicle (i, CarID)) { TextDrawShowForPlayer (i, RadarHud); } } } } else { SendClientMessage(playerid, COLOR_WHITE,"Ne pare rau dar nu faci parte din factiunea ...."); } return 1; } Si pe la inceputul modului defineste new VehRadarID[MAX_PLAYERS]; new Text:RadarHud; Acum am facut eu la mine in PC Special si merge, fa cum am zis in POSTUL ASTA
-
Dupa ultimul SendClientMessage adauga jos return 1; }
-
Sub if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) e o { ( Acolada )
-
Uita-te in FS si vezi ca trebuie sa fie definite pe la inceput si dupa le baga la inceput in GM EDIT: new VehRadarID [MAX_VEHICLES]; Si inlocuieste vehid cu carid
-
Celor carora nu va merge instalati .net framework
-
Adauga undeva asta si ca sa-ti apara banii cu . la stats la public ShowStats acolo unde ai Bani Cash / Bani in Banca %d pui %s stock FormatMoney(Float:amount, delimiter[2]=".") { #define MAX_MONEY_STRING 16 new txt[MAX_MONEY_STRING]; format(txt, MAX_MONEY_STRING, "$%d", floatround(amount)); new l = strlen(txt); if (amount < 0) { if (l > 5) strins(txt, delimiter, l-3); if (l > 8) strins(txt, delimiter, l-6); if (l > 11) strins(txt, delimiter, l-9); } else { if (l > 4) strins(txt, delimiter, l-3); if (l > 7) strins(txt, delimiter, l-6); if (l > 10) strins(txt, delimiter, l-9); } return txt; }
-
))) Pai de ce n-ai spus ca e FilterScript ma. Ia comanda si bag-o in GameMode dincolo de comanda /pay si fa-o de forma if(strcmp(cmd, "/placeradar", true) == 0) Oricum solutia ti-am dat-o modifica acolo ID FACTIUNE cu ID-ul factiunii careia vrei sa execute comanda.