Jump to content

[RSD]TheBoss

Membru
  • Posts

    262
  • Joined

  • Last visited

    Never

Everything posted by [RSD]TheBoss

  1. defapt carid se inlocuieste cu ce functie ai ex:poate ai vehileid new vehicleid; vehicleid= GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid,vehicleid,0); playerid-id-ul playerului vehicleid-lam definit ca id-ul masini 0-reprezinta il pune in masina ca sofer si despre partea cu /nrg....nu se cer scripturi
  2. am facut faza cu SQL dar....nu stiu cum sa fac sa verifice de acolo:Ex sa verifice daca are "Level"....in fine mai usor mi se pare cu dini decat cu "SQL" ma poata ajuta cineva?
  3. incearca sa adaugi asta la public OnPlayerConnect(playerid) { new weapon; weapon=GetPlayerWeapon(playerid); new ammoinf; ammoinf=SetPlayerAmmo(playerid,weapon,999); GivePlayerWeapon(playerid,weapon,ammoinf); } caci partea cu donate fao tu eu am facut codu ....sa-ti dea la arme munitie infinita cand se conecteaa...
  4. bine o sa incerc SQL sa vad daca merge...
  5. da ma dar tu ai windos 7 ...ce sa fac are cineva ide?:(
  6. ok ms ma... daca nu merge dau edit adica daca nu se salveza datele Edit:N-a mers tot nu se salveaza
  7. si ce ma?.....daca am...? merge comanda,nu-s probleme ...ce mai vreti altceva?
  8. Nu Inteleg de ce am facut totu bine..... Am facut si eu ceva cu DIni sa stockeaza niste chesti am facut LevelSyst.... si nu se stockeaza datele nu inteleg de e:| uitati scriptu: #include <a_samp> #include <Colors> #include <sscanf2> #include <YSI/Y_INI> #include <zcmd> #include <Dini> enum LevelAcc { Level, Experience }; new LevelPlayer[MAX_PLAYERS][LevelAcc]; #define PlayerFile "/AccountFile/%s.ini" #pragma tabsize 0 public OnPlayerConnect(playerid) { new Acc[256]; new name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerName(playerid,name,sizeof(name)); GetPlayerIp(playerid,ip,sizeof(ip)); format(Acc,sizeof(Acc),PlayerFile,name); if(dini_Exists("Acc")) { dini_Create(Acc); dini_IntSet(Acc,"Level:",LevelPlayer[playerid][Level]); dini_IntSet(Acc,"Experience:",LevelPlayer[playerid][Experience]); } LevelPlayer[playerid][Level] = dini_Int(Acc,"Level:"); LevelPlayer[playerid][Experience] = dini_Int(Acc,"Experience"); LevelPlayer[playerid][Level]=1; LevelPlayer[playerid][Level]=0; return 1; } public OnPlayerDisconnect(playerid,reason) { new Acc[256]; new name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerIp(playerid,ip,sizeof(ip)); GetPlayerName(playerid,name,sizeof(name)); format(Acc,sizeof(Acc),PlayerFile,name); dini_IntSet(Acc,"Level:",LevelPlayer[playerid][Level]); dini_IntSet(Acc,"Experience",LevelPlayer[playerid][Experience]); } public OnPlayerDeath(playerid,killerid,reason) { LevelPlayer[playerid][Experience] -=1; LevelPlayer[killerid][Experience] +=1; } public OnPlayerCommandText(playerid,cmdtext[]) { } CMD:mylevel(playerid,params[]) { new string[256]; format(string,sizeof(string),"Your Level %d.",LevelPlayer[playerid][Level]); SendClientMessage(playerid,COLOR_GREEN,string); return 1; } CMD:myexp(playerid,params[]) { new string[256]; format(string,sizeof(string),"Your Exp:%d.",LevelPlayer[playerid][Experience]); SendClientMessage(playerid,COLOR_GREEN,string); return 1; } CMD:levelup(playerid,params[]) { if(LevelPlayer[playerid][Experience] >=500) { LevelPlayer[playerid][Level] +=1; new string[256]; format(string,sizeof(string),"You have advanced to %d level",LevelPlayer[playerid][Experience]); SendClientMessage(playerid,COLOR_RED,string); } else SendClientMessage(playerid,-1,"You don't have exp to advance to next level!"); return 1; } CMD:startlevel(playerid,params[]) { LevelPlayer[playerid][Level] =1; SendClientMessage(playerid,COLOR_RED,"You seted your level start to 1!"); } EU cred ca-i bun.... bun acum am facut in scriptfile un folder numit AccountFile dar cand ma conectez...pe server nu se intampla abosulut nimica ce sa fac?....
  9. ZCMD comenzi: CMD:setmedic(playerid,params[]) { new id; if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"[ERROR][USUAGE]:/setmedic [id]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"[ERROR]:Player is not connected!"); else if(Medic[id] == 1) return SendClientMessage(playerid,-1,"[ERROR]:This player is already medic!"); else if(IsPlayerLuxAdminLevel(playerid,3)) { new string[256]; new name[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(id,playername,sizeof(playername)); format(string,sizeof(string),"You set %s for to be medic.",playername); SendClientMessage(playerid,COLOR_RED,string); format(string,sizeof(string),"Admin %s set you medic.now you can use command /heal id",name); SendClientMessage(id,COLOR_GREEN,string); Medic[id]=1; format(string,sizeof(string),"Admin %s set %s for to be medic!",name,playername); SendClientMessageToAll(COLOR_RED,string); } else SendClientMessage(playerid,-1,"[ERROR]:You don't have enoungh level!"); return 1; } CMD:heal(playerid,params[]) { new id; if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"[ERROR]:/heal [id]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"[ERROR]:Player is not connected!"); if(Medic[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"[ERROR]:You aren't a medic!"); else { new Float:Health; GetPlayerHealth(id,Health); if(Health >= 100) { SendClientMessage(playerid,COLOR_RED,"[ERROR]:Player have full HEALTH!"); } else { new string[256]; new name[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; format(string,sizeof(string),"Medic %s healed you!",name); SendClientMessage(id,COLOR_RED,string); format(string,sizeof(string),"You Healed %s",playername); SendClientMessage(playerid,COLOR_RED,string); format(string,sizeof(string),"Medic %s healed %s",name,playername); SendClientMessageToAll(COLOR_RED,string); SetPlayerHealth(id,100); } } return 1; } CMD:pmm(playerid,params[]) { new id; if(sscanf(params,"us",id,params[0])) return SendClientMessage(playerid,-1,"[ERROR][USUAGE]:/pmm [id] [text]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"[ERROR]:Player is not connected!"); if(id == playerid) return SendClientMessage(playerid,-1,"[ERROR]You cannot send private message to you"); else { new string[256]; new name[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(id,playername,sizeof(playername)); format(string,sizeof(string),"%s send to you a message:%s",name,params[0]); SendClientMessage(id,COLOR_RED,string); format(string,sizeof(string),"You send to %s a message:%s",playername,params[0]); SendClientMessage(playerid,COLOR_RED,string); } return 1; } CMD:ammo(playerid,params[]) { if(GetPlayerMoney(playerid) >=30000) { new weapon; weapon = GetPlayerWeapon(playerid); GivePlayerWeapon(playerid,weapon,500000); } else SendClientMessage(playerid,COLOR_RED,"[ERROR]:You don't have enoungh Money!30.000$"); return 1; } CMD:ann(playerid,params[]) { if(sscanf(params,"s",params[0])) return SendClientMessage(playerid,-1,"[ERROR][USUAGE]:/ann [text]"); else { new Hour ,Minute, Second; gettime(Hour,Minute,Second); new string[256]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"[SERVER]:Announce new.placed by %s:%s on %d/%d/%d",name,params[0],Hour,Minute,Second); SendClientMessageToAll(COLOR_GREEN,string); printf("[SERVER]:Announce new.placed by %s:%s on %d/%d/%d",name,params[256],Hour,Minute,Second); } return 1; } CMD:givescore(playerid,params[]) { new id,score; if(sscanf(params,"ud",id,score)) return SendClientMessage(playerid,-1,"[ERROR][USUAGE]:/givescore [id] [score]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"[ERROR]:Player is not connected!"); else if(score >GetPlayerScore(playerid)) return SendClientMessage(playerid,-1,"[ERROR]:You don't have enoungh score!"); else if(id == playerid) return SendClientMessage(playerid,-1,"[ERROR]:You cannot give score yourself!"); else { new string[256]; new name[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; GetPlayerName(id,playername,sizeof(playername)); GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s gave you %d.score",name,score); SendClientMessage(id,COLOR_GREEN,string); format(string,sizeof(name),"You give %d.score to %d.score",playername,score); SendClientMessage(playerid,COLOR_GREEN,string); SetPlayerScore(id,GetPlayerScore(id)+score); SetPlayerScore(playerid,GetPlayerScore(playerid)-score); } return 1; } CMD:givecash(playerid,params[]) { new id,money; if(sscanf(params,"ud",id,money)) return SendClientMessage(playerid,-1,"[ERROR][USUAGE]:/givecash [id] [money]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"[ERROR]Player is not connected!"); else if(id == playerid) return SendClientMessage(playerid,-1,"[ERROR]:You cannot give yourself cash!"); else if(money > GetPlayerMoney(playerid)) return SendClientMessage(playerid,-1,"[ERORR]:You don't have enoungh money!"); else { new string[256]; new name[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; GetPlayerName(id,playername,sizeof(playername)); GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s gave you %d.money",name,money); SendClientMessage(id,COLOR_GREEN,string); format(string,sizeof(name),"You give %d.score to %d.money",playername,money); SendClientMessage(playerid,COLOR_GREEN,string); GivePlayerMoney(playerid,(0-money)); GivePlayerMoney(id,money); } return 1; } CMD:statss(playerid,params[]) { new id; if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"[ERROR]:/statss [id]"); if(id == playerid) { new string[256]; new Name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,ip,sizeof(ip)); new Float:X,Y,Z,Angle; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); format(string,sizeof(string),"Name:%s \nIp:%s \nScore:%d \nMoney:%d \nWanted:%d \nX:%f \nY:%f \nZ:%f \nAngle:%f",Name,ip,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerWantedLevel(playerid),X,Y,Z,Angle); ShowPlayerDialog(playerid,301,DIALOG_STYLE_MSGBOX,"Stats",string,"Ok",""); } else { new string[256]; new Name[MAX_PLAYER_NAME]; new ip[256]; GetPlayerName(id,Name,sizeof(Name)); GetPlayerIp(id,ip,sizeof(ip)); new Float:X,Y,Z,Angle; GetPlayerPos(id,X,Y,Z); GetPlayerFacingAngle(id,Angle); format(string,sizeof(string),"Name:%s \nIp:%s \nScore:%d \nMoney:%d \nWanted:%d \nX:%f \nY:%f \nZ:%f \nAngle:%f",Name,ip,GetPlayerScore(id),GetPlayerMoney(id),GetPlayerWantedLevel(id),X,Y,Z,Angle); ShowPlayerDialog(playerid,301,DIALOG_STYLE_MSGBOX,"Stats",string,"Ok",""); format(string,sizeof(string),"%s looking at your status!"); ShowPlayerDialog(id,302,DIALOG_STYLE_MSGBOX,"Warning",string,"Ok",""); } return 1; } sunt facute de mine de la 0% dintr-un gm in care este vreau sa-l fac mi-a fost sila sa scriu. atat de mult......asa ca am dat copy+paste :)
  10. Removed All COmments Removed! Please TOpic close :|
  11. pai da ma trebuie tu sa-l faci si ne zici la ce face probleme...
  12. 1 acela si -1 sunt culorile ex: AddStaticVehicleEx(vehicleid,x,y,z,angle,firstcolor,secondcolor,reswpawntime); vehicleid-id-ul vehicului asta il inlocuieste cu ce masina vrei ex :520 x,y,z-coordonatele.... angle-este tot o pozitie care inseamna la ce attiudine esti (inaltime) firstcolor-prima culoare secondcolor- a doua culoare reswpawntime-timpul in care sa se respawneze ex 5:(in secunde) ex: [pawn]AddStaticVehicleEx(520,200.000,130.4,10.20,40.50,1,2,2);[/pawn]
  13. Mda Nu prea ma descurc in dini recunosc....deci as avea putin ajutor...DACA PUTETi si daca vreti..... Nu sunt sigur cam cum ar fi sa se stockeze datele......de genu variabila[playerid] =0; //1 adica ex sa zicem ca fac o variabila sa verifice daca ai permis... cam asa ? [pawn] public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); dini_Create(....) } [/pawn] Si sa se salveze de ex: In scriptFiles si sa verifice de acolo daca e on...ca daca de exemplu setez o limba.....sa numai apara de fiecare data sa o setez ...dar nu stiu cum sa fac:|adica nam idee partea cu dini....de fiecare daca cand le invat...nu stiu....parca le uit...in fine daca ati vrea...nu cer script cer doar sa ma ajutati ca nam idee cum sa fac ( un pic partea cu dini ca se creeze alea..ca de restu ma descurc...As fi recunoscator Multumesc:)!
  14. A mers...Dar nu datorita lui framework si datorita lui Microsoft Visual C++......nu il aveam ms oricum
  15. deci lisepsete net framework 4?.....aha ms...incerc sa il instalez si va zic daca merge... dau edit daca nu a mers Edit:Na mers TOT ASA zice :Unable to execute compiler:((
  16. Am o mare problema...nu stiu de la ce o fi ...dar orice pawno folosesc cand dau compile zice Unable to execute compiler :| ce trebuie sa fac?...ca fara scripting nu prea pot sa fac nimic la server :|;...... trebuie sa reinstalez pawno sau ce sa fac?....ca nam idee ....:| pawnocc nu merge ...please somebody help me :|
  17. si ce vrei sa til facem noi?.......Aici nu se cer scripturi!!!.....Cer Topic Closed !
  18. mda...nu prea avem idee unde sa o fac :|
  19. e facuta de mine Nu e copiat de nicaieri .............................. L-am facut eu puteti sa cautati cat vreti... Si MS la all:)
  20. Salut am facut o casa de admini Youtube: http://www.youtube.com/watch?v=ihNDAaDQvGo Download: http://www.mediafire.com/?fc5magl3id345gi Sper sa va placa :| m-am chinuit ceva la ea Comenzi: /ahousecp :smiley: CUm Il instalez? IL DOWnloadezi dezarchivezi ce se afla in el in folderul filterscript intri in server.cfg si adaugi acolo la filterscript AHouse filterscript AHouse si deschizi sv si gata.
×
×
  • 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.