Jump to content

XStormiest

Membru
  • Posts

    140
  • Joined

  • Last visited

Everything posted by XStormiest

  1. trb sa aveti sscanf plugin,si zcmd pentru a nu da erori de asemenea deobicei primul filterscript din server.cfg de la linia filterscript nu are nici un bug deoarece este incarcat primul si nu creeaza conflicte..bine acum depinde si de fs-ul respectiv... daca nu s-au incurcat dialogurile etc... bv Speed eu folosesc dini deoarece este mult mai usor de folosit si sigur..se invata foarte rpd... cei care nu au sscanf uitati aici includele /* * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is the sscanf 2.0 SA:MP plugin. * * The Initial Developer of the Original Code is Alex "Y_Less" Cole. * Portions created by the Initial Developer are Copyright (C) 2010 * the Initial Developer. All Rights Reserved. * * Contributor(s): * * Special Thanks to: * * SA:MP Team past, present and future */ native sscanf(const data[], const format[], {Float,_}:...); native unformat(const data[], const format[], {Float,_}:...) = sscanf; intr-un document de tip inc. si uitati si zmcd /********************************** * * * @Author: ZeeX * * @Version: 0.3.1 * * @Released: 31/10/2009 * * * **********************************/ #if defined _zcmd_included #endinput #endif #define _zcmd_included #define MAX_FUNC_NAME (32) #define COMMAND:%1(%2) \ forward cmd_%1(%2); \ public cmd_%1(%2) #define CMD:%1(%2) \ COMMAND:%1(%2) #define command(%1,%2,%3) \ COMMAND:%1(%2, %3) #define cmd(%1,%2,%3) \ COMMAND:%1(%2, %3) #if !defined isnull #define isnull(%1) \ ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) #endif forward OnPlayerCommandReceived(playerid, cmdtext[]); forward OnPlayerCommandPerformed(playerid, cmdtext[], success); static bool:zcmd_g_HasOPCS = false, bool:zcmd_g_HasOPCE = false; #if defined FILTERSCRIPT public OnFilterScriptInit() { zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1; zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1; return CallLocalFunction("zcmd_OnFilterScriptInit", ""); } #if defined _ALS_OnFilterScriptInit #undef OnFilterScriptInit #else #define _ALS_OnFilterScriptInit #endif #define OnFilterScriptInit zcmd_OnFilterScriptInit forward zcmd_OnFilterScriptInit(); #else /*not a filterscript*/ public OnGameModeInit() { zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1; zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1; if (funcidx("zcmd_OnGameModeInit") != -1) { return CallLocalFunction("zcmd_OnGameModeInit", ""); } return 1; } #if defined _ALS_OnGameModeInit #undef OnGameModeInit #else #define _ALS_OnGameModeInit #endif #define OnGameModeInit zcmd_OnGameModeInit forward zcmd_OnGameModeInit(); #endif /*if defined FILTERSCRIPT*/ public OnPlayerCommandText(playerid, cmdtext[]) { if (zcmd_g_HasOPCS && !CallLocalFunction("OnPlayerCommandReceived", "is", playerid, cmdtext)) { return 1; } new pos, funcname[MAX_FUNC_NAME]; while (cmdtext[++pos] > ' ') { funcname[pos-1] = tolower(cmdtext[pos]); } format(funcname, sizeof(funcname), "cmd_%s", funcname); while (cmdtext[pos] == ' ') pos++; if (!cmdtext[pos]) { if (zcmd_g_HasOPCE) { return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, "\1")); } return CallLocalFunction(funcname, "is", playerid, "\1"); } if (zcmd_g_HasOPCE) { return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, cmdtext[pos])); } return CallLocalFunction(funcname, "is", playerid, cmdtext[pos]); } #if defined _ALS_OnPlayerCommandText #undef OnPlayerCommandText #else #define _ALS_OnPlayerCommandText #endif #define OnPlayerCommandText zcmd_OnPlayerCommandText forward zcmd_OnPlayerCommandText(playerid, cmdtext[]); oricum bafta
  2. daca tot ai facut un FS pentru ...un sv de samp... uite aici un include facut de mine....schimbi alea cu ce vrei tu schimbi locatia,functile etc..eu am facut unul default.... #include <a_samp> #include <dini> enum VIPS { VIP }; new StoneCore[MAX_PLAYERS][VIPS]; #define VIPs "Vip/%s.ini" stock SavePlayerVIP(playerid) { new name[MAX_PLAYER_NAME],file[256]; GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),VIPs,name); if(!dini_Exists(file) ) { dini_Create(file); dini_IntSet(file,"VIP",0); dini_Set(file,name); } if(dini_Exists(file) ) { } } stock LoadPlayerVIP(playerid) { new name[MAX_PLAYER_NAME],file[256];GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),VIPs,name); StoneCore[playerid][VIP] = dini_Int(file,"VIP"); } stock SetPlayerVip(playerid,vip) { StoneCore[playerid][VIP] = vip; new string[256]; format(string,sizeof(string),"You promoted to %d,/vipcmds to use",); SendClientMessage(playerid,-1,string); } stock GetPlayerVip(playerid,level) { if(StoneCore[playerid][VIP] >= level) { } } Stonecore mi-a venit urma unui nume de pe un mmorpg..
  3. Crezi ca-s albert? dami linile de unde da eroririle...
  4. Introducere: Stiu ca e un script banal si ca oricine poate face in acest moment un sistem de admin.....chiar si cel mai praf scripter dar numai aveam idei e un simplu sistem de admin.... Contine 5 comenzi puteti voi crea mai multe alta versiune numai fac ...... Download: http://www.mediafire.com/?5t8r8n3q1qu1lut http://www.mediafire.com/?cpppn66km25k3s9 Scuze ca am facut un script usor ca asta ....e ca si cum ai face o comanda /kill prin strcmp dar numai aveam idei o sa fac un script mai smecher cand o sa am idei... Sper sa va placa.
  5. ce vrei sa faci ca nu inteleg? sa maresti textul sau ce?
  6. era o functie si da exista ConnectNPC folosesti-o
  7. poate sa fie poate sa nu e foarte usor sa faci un script ca ala... Daca vrei sa te credem fa ceva mai complicat...mai tare putin in fine 5/5 Pentru incurajare
  8. usor dar frumos bravo 10/10 P.S: (OFF) : Eu nu mai scriptez.....m-am lasat..
  9. probabil am pus eu ...si an yutat in fine...o sa dau edit
  10. Foloseste Y_INI .... pentru a salva coordonatele daca vrei sa parchezi masina si sa ramana chiar si atunci cand inchizi sv... poti folosi si dini sau altele dar e recomandat y_ini Nu-ti fac eu comanda pentru ca asta ar insemna sa-ti dau mura in gura
  11. ms o sa mai fac imbunatatiri..pentru ca cum am spus lam facut in plictiseala....
  12. [move]XStormiest Presents [/move] [move]EventSystem1.0[/move] Introducere: Salut sunt nou pe aici , dar nu si incepator ,incepator....... Am creat un script EventSystem EventSystem este cam asa un admin scrie /startevent si o stea apare pe harta playerul trebuie sa scrie /joinevent ca sa concureze si daca gaseste ,castiga o anumita recompensa pe care o puteti modifica fara probleme Cum Il Instalez Instructiunile sunt in comentariu la archiva Intrebari: 1.Pot edita recompensa Desigur sunt la inceput niste define cu care setezi! 2.Mai faci o noua versiune?dar putin mai buna Da o sa fac Download: http://www.mediafire.com/?o9kviv4k8fvt0c9 Sper sa va placa scriptu e bun atunci cand nu stii ce event sa oragnizezi.... Distractie placuta cu scriptu
×
×
  • 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.