vasy
Membru-
Posts
196 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by vasy
-
cred ca ai vorbit si cu blacklife si tia spus ca vrea si el asa ceva da vreau sa imi scrie numele, id si ip
-
Salut am acest dialog [pawn]// Try to loTXT_DialogLoginMad the player's datafile ("PlayerFile_Load" returns "1" is the file has been read, "0" when the file cannot be read) if (PlayerFile_Load(playerid) == 1) { // Check if the player is still banned if (APlayerData[playerid][banTime] < gettime()) // Player ban-time is passed ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, TXT_DialogLoginTitle, TXT_DialogLoginMsg Name, TXT_DialogLoginButton1, TXT_DialogButtonCancel); else // Player is still banned { ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds Kick(playerid); // Kick the player }[/pawn] definit de [pawn]// The login dialog #define TXT_DialogLoginTitle "{0000FF}Romania {FFFF00}Fast {FF0000}Trucking" // Define the title-message on top of the login-dialog #define TXT_DialogLoginMsg "Salut{FFFF00} %s bine ai venit pe {FF0000}Ro{FFFF00}man{0000FF}ia {00FFFF}Fast {008040}Trucking\n{0000FF}Detinator: Jo[K]3R Owner: pAcZi \n{FFFF00}Forum PGZ.ro/forum \n {FF0000}Nume Gamemod: JPT Trcuking (original) {FFFF00}by Jo[K]3R \n Contact Y/M: dj_vasy1998 Skype: vasy_eu14 \n RFT Va doreste distractie placuta" // Define the actual message in the login-dialog #define TXT_DialogLoginButton1 "Intra" // Define the text on the "login" button for the login-dialog #define TXT_LoggedIn "{00FF00}Te-ai locagat bine ai revenit" #define TXT_WrongPassword "{FF0000}Ati introdus o parola gresita, ai fost dat afara" #define TXT_LoginEnterValidPassword "Pt a te loga introdu parola" #define TXT_PlayerMustLogin "{FF0000}Trebuie sa te loghezi pentru a putea juca, ai fost dat afara!" #define TXT_FailedLoginProperly "{FF0000}Tu nu a reu?it sa se autentifice în mod corespunzator, esti dat afara"[/pawn] Cum as putea sa fac ca in dialog loginmsg sa fac sa scrie si id si numele si ip Pentru ca daca scriu in dialog Name in loc de TXT_DialogLoginMsg imi da numele dar daca pun si TXT_DialogLoginMsg si name nu imi mai ia #define TXT_DialogLoginButton1 Ce pot sa fac ?
-
mmm interesant cred ca ma faci sa o bag si eu =)) dar nu am zis ca am mape proprii oricum e bestiala
-
Nu este asa in ppc se lucreaza numai in include si de exemplu sa zicem ca vrei sa faci madic iei fiecare incude in parte dai ctrl +f cauti pilot copii ce e legat de pilot si inlocuiesti pilot cu medic asa faci la fiecare include care incepe cu ppc_ si sa nu uiti ca trebuie sa faci si ppc_misionsclasata dupa ce faci asta faci si in gm la fel Daca iti da errori sau buguri posteazale si te ajutam
-
Ia alt ppc_trucking supa samp.ro si are mai multe clase dar ce spui tu seamana cu trcukmania :-?
-
si tu invata romana si cum ma ajuti imi spui ca sunt modificate comenzile si gata eu zic ca nu imi citeste obiectele si de celalte 4 merg
-
Nu inteleg la ce te referi
-
ooo Fred da ce mapa tu ai facuto sau argon oricum e frumoasa ps jok3r
-
[pawn]#include <a_samp> #include <a_objects> new obiect; new obiect1; new villa; new RFT1; new RFT2; new RFT3; new RFT4; forward Actiunea(playerid); public Actiunea(playerid) { MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 7, 0.0000000,268.0000000,270.0000000); MoveObject(obiect1, 2738.03, 958.08, 16.47, 5, 0.00, 0.00, 0.00); MoveObject(villa, -4209.82, -58.66, 14.40, 5 ,0.00, 0.00, 359.98); MoveObject(RFT1, 1865.72, 801.29, 16.30, 5 ,0.00, 0.00, 89.29); //move noii MoveObject(RFT2, 1855.90, 757.60, 9.90, 5 ,0.00, 0.00, 90.00); MoveObject(RFT3, 1927.00, 783.30, 9.70, 5 ,0.00, 0.00, 359.99); MoveObject(RFT4, -692.10, 662.10, 16.50, 5 ,0.00, 0.00, 155.99); return 1; } public OnGameModeInit() { Create3DTextLabel("Scrie /deschide pentru a deschide bariera", 0x008080FF, 1497.1999500,989.4000200,10.8000000, 40.0, 0, 0); Create3DTextLabel("Nu uita sa dai /assist ca sa alimentezi masina", 0xFF0000FF, 1630.0, 1615.0, 10.9, 40.0, 0, 0); Create3DTextLabel("Nu uita sa dai /assist ca sa alimentezi masina", 0xFF0000FF, 1630.64, 1015.55, 10.82, 40.0, 0, 0); obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000); obiect1 = CreateObject(2885, 2738.03, 958.08, 16.47, 0.00, 0.00, 0.00); villa = CreateObject(987, -4209.82, -58.66, 14.40, 0.00, 0.00, 359.98); RFT1 = CreateObject(2885, 1865.72, 801.29, 16.30, 0.00, 0.00, 89.29); //porti noi RFT2 = CreateObject(987, 1855.90, 757.60, 9.90, 0.00, 0.00, 90.00); RFT3 = CreateObject(987, 1927.00, 783.30, 9.70, 0.00, 0.00, 359.99); RFT4 = CreateObject(987, -692.10, 662.10, 16.50, 0.00, 0.00, 155.99); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if( strcmp(cmdtext, "/deschide", true)==0) { MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 7, 0.0000000,352.0000000,270.0000000); SetTimerEx("Actiunea", 7 * 2000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } if( strcmp(cmdtext, "/villa", true)==0) { MoveObject(obiect1, 2738.03, 958.08, 9.91, 3, 0.00, 0.00, 0.00); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } if( strcmp(cmdtext, "/ville", true)==0) { MoveObject(RFT4, -692.10, 662.10, 16.50, 5 ,0.00, 0.00, 155.99); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } if( strcmp(cmdtext, "/rft1", true)==0) { MoveObject(RFT2, 1855.90, 757.60, 9.90, 3 ,0.00, 0.00, 90.00); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } //de astea noi ) if( strcmp(cmdtext, "/rft2", true)==0) { MoveObject(RFT3, 1927.00, 783.30, 9.70, 3 ,0.00, 0.00, 359.99); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } if( strcmp(cmdtext, "/1716", true)==0) { MoveObject(RFT1, 1865.72, 801.29, 9.79, 3 ,0.00, 0.00, 89.29); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } if( strcmp(cmdtext, "/focsani", true)==0) { MoveObject(villa, -4209.82, -58.66, 8.06, 3 ,0.00, 0.00, 359.98); SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } return 0; } public OnFilterScriptInit() { return 1; } [/pawn] Deci am acest fs Bun merge totul in regula Dar imi citeste doar primele 4 porti de la 4 in colo adica ultimele 3 nu mi le mai citeste de ce?
-
multumesc mult merge puteti da tc
-
[pawn]#include <a_samp> new obiect; forward Actiunea(playerid); public Actiunea(playerid) { MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000); return 1; } public OnGameModeInit() { obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if( strcmp(cmdtext, "/deschide", true)==0) { MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,352.0000000,270.0000000); SetTimerEx("Actiunea", 3 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } return 0; } [/pawn] deci am acest fs merge frumos dar vreau sa adaug mai multe obiecte la el se poate? daca da cum
-
Un tutorial cu SetDynamicObjectMaterialText pentru ca SetObjectMaterialText nu este asa bun arata textul de 1000 de ori si... fac eun obiect negru nu imi place
-
baga si #include numeplugin in gm dupa ce ai downladat alte pluginuri
-
Stie cineva cum pot face o comanda din modul acesta [pawn]dcmd_giveweapon(playerid,params[]) { if(AccInfo[playerid][Level] >= 2) { new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, LIGHTBLUE2, "Usage: /giveweapon [PlayerID] [Weapon ID/Name] [Ammo]") && SendClientMessage(playerid, orange, "Function: Will Crash a specified player"); new player1 = strval(tmp); new weap, ammo, WeapName[32]; new string[128]; if(!strlen(tmp3) || !IsNumeric(tmp3) || strval(tmp3) <= 0 || strval(tmp3) > 99999) ammo = 500; else ammo = strval(tmp3); if(!IsNumeric(tmp2)) weap = GetWeaponIDFromName(tmp2); else weap = strval(tmp2); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { if(!IsValidWeapon(weap)) return SendClientMessage(playerid,red,"ERROR: Invalid Weapon ID"); SendCommandToAdmins(playerid,"GiveWeapon"); GetWeaponName(weap,WeapName,32); format(string, sizeof(string), "|- You have given \"%s\" a %s (%d) with %d rounds of Ammo -|", PlayerName2(player1), WeapName, weap, ammo); SendClientMessage(playerid,BlueMsg,string); if(player1 != playerid) { format(string,sizeof(string),"|- Administrator \"%s\" has given you a %s (%d) with %d rounds of Ammo -|", PlayerName2(playerid), WeapName, weap, ammo); SendClientMessage(player1,blue,string); } return GivePlayerWeapon(player1, weap, ammo); } else return ErrorMessages(playerid, 2); } else return ErrorMessages(playerid, 1); }[/pawn] sa o fac comanda pentru ppc_trucking adica asa [pawn]COMMAND:pm(playerid, params[]) { // Setup local variables new OtherPlayer, Message[128], Msg1[128], Msg2[128], YourName[24], OtherPlayerName[24]; // Send the command to all admins so they can see it SendAdminText(playerid, "/pm", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { if (sscanf(params, "us[128]", OtherPlayer, Message)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/pm <OtherPlayer> <Message>\""); else { // Check if that other player is online if (IsPlayerConnected(OtherPlayer)) { // Check if the player isn't muted if (APlayerData[playerid][Muted] == false) { // Get both names GetPlayerName(playerid, YourName, sizeof(YourName)); GetPlayerName(OtherPlayer, OtherPlayerName, sizeof(OtherPlayerName)); // Construct the message that is sent to yourself format(Msg1, 128, "{808080}PM to %s{FFFFFF}: %s", OtherPlayerName, Message); // Construct the message that is sent to the other player format(Msg2, 128, "{A0A0A0}PM by %s{FFFFFF}: %s", YourName, Message); // Send the messages SendClientMessage(playerid, 0xFFFFFFFF, Msg1); SendClientMessage(OtherPlayer, 0xFFFFFFFF, Msg2); } else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You are still muted"); } else SendClientMessage(playerid, 0xFF0000FF, "Player is not online"); } } else return 0; // Let the server know that this was a valid command return 1; } [/pawn] si o comanda de admin [pawn] COMMAND:createhouse(playerid, params[]) { // Setup local variables new HPrice, MaxLevel, HouseID; // Send the command to all admins so they can see it SendAdminText(playerid, "/createhouse", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player's admin-level is at least 5 if (APlayerData[playerid][PlayerLevel] >= 6) { // Check if the player isn't inside a vehicle if (GetPlayerVehicleSeat(playerid) == -1) { if (sscanf(params, "ii", HPrice, MaxLevel)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/createhouse <price> <maxlevel (1-10)>\""); else { // Check if the player entered a proper maxlevel if ((MaxLevel >= 1) && (MaxLevel <= 10)) { // Find the first free HouseID for (HouseID = 1; HouseID < MAX_HOUSES; HouseID++) if (AHouseData[HouseID][PickupID] == 0) // Check if an empty house-index has been found (PickupID is 0) break; // Stop searching, the first free HouseID has been found now // Check if the house-limit hasn't been reached yet if (HouseID < MAX_HOUSES) { // Setup some local variables new Float:x, Float:y, Float:z, Msg[128]; // Get the player's position GetPlayerPos(playerid, x, y, z); // Set some default data AHouseData[HouseID][HouseX] = x; AHouseData[HouseID][HouseY] = y; AHouseData[HouseID][HouseZ] = z; AHouseData[HouseID][HouseLevel] = 1; AHouseData[HouseID][HouseMaxLevel] = MaxLevel; AHouseData[HouseID][HousePrice] = HPrice; AHouseData[HouseID][Owned] = false; // Add the pickup and 3DText at the location of the house-entrance (where the player is standing when he creates the house) House_CreateEntrance(HouseID); // Save the house HouseFile_Save(HouseID); // Inform the player that he created a new house format(Msg, 128, "{00FF00}You've succesfully created house {FF00FF}%i{00FF00}", HouseID); SendClientMessage(playerid, 0xFFFFFFFF, Msg); } else SendClientMessage(playerid, 0xFF0000FF, "The maximum amount of houses has been reached"); } else SendClientMessage(playerid, 0xFF0000FF, "You have to use a max-level from 1 to 10"); } } else SendClientMessage(playerid, 0xFF0000FF, "You can't be inside a vehicle to create a house"); } } else return 0; // Let the server know that this was a valid command [/pawn] Ca daca o las asa iau o gramada de errori si warniguri
-
schimba pluginurile iar si iar si iar pana cand le gasesti pe cele bune
-
Stiti cum as putea sa fac ca la sv de stunt sa nu poti repeta mesajul si sa astepti 1 2 secunde ca sa postezi alt mesaj
-
interesant fs dar mie nu imi place ca nu imi merge (
-
asta nu e facut de tine il vad pe toate sv de truck romanesti dar e frumos pt fs 5/5 pentru tine 1/5
-
cand cand e cacafonie dar e frumoos
-
sunt cu .dll dar nu merg Edit: Trebuie sa precizez ca acest luczru mi sa intamplat dupa ce am inlocut includele cu cele mai noi Gata merge dati tc multumesc bubu
-
nu imi citeste sv [00:10:16] Script[gamemodes/PPC_Trucking.amx]: Run time error 19: "File or function is not found" [00:10:16] Number of vehicle models: 0
-
intreabal pe BlacLife ca el a facut )