Jump to content

AleX1321

Membru
  • Posts

    76
  • Joined

  • Last visited

    Never

Everything posted by AleX1321

  1. Sub fiecare linie adaugi ce ti-am dat eu. [pawn] SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Stretch"); HouseInfo[house][hVec] = 409; DestroyVehicle(carhouse); AddStaticVehicleEx(HouseInfo[house][hVec], HouseCarSpawns[house][0], HouseCarSpawns[house][1], HouseCarSpawns[house][2], HouseCarSpawns[house][3], HouseInfo[house][hVcol1], HouseInfo[house][hVcol2], 60000);[/pawn]
  2. [pawn] DestroyVehicle(carhouse); AddStaticVehicleEx(HouseInfo[house][hVec], HouseCarSpawns[house][0], HouseCarSpawns[house][1], HouseCarSpawns[house][2], HouseCarSpawns[house][3], HouseInfo[house][hVcol1], HouseInfo[house][hVcol2], 60000);[/pawn]
  3. Se incurca id-urile la masini,verifica in GM cate masini ai si pune nr masinilor+1 din cate stiu,
  4. AleX1321

    Ajutor

    Am facut o comanda pentru cei noi intrati sa primeasca arme personale. [pawn] if(strcmp(cmd, "/newbie", true)==0) { GetPlayerName(playerid,giveplayer,sizeof(giveplayer)); if(PlayerInfo[playerid][pLevel] >= 3) { new playa = ReturnUser(tmp); if(ngun[playa] >= 2) { SendClientMessage(playerid, COLOR_GRAD1, " Deja ai 2 puncte de arme"); } else { ngun[playa] += 2; GetPlayerName(playerid, sendername,sizeof(sendername)); GetPlayerName(playa,playername,sizeof(playername)); format(string, sizeof(string), "Ai primit 2 punce de arma infinita. Foloseste /dgun", sendername); SendClientMessage(playa, COLOR_LIGHTBLUE, string); } } else SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command ."); }[/pawn] Problema,dau /newbie dar imi zice server unknow command am schimbat numele comenzi si tot degeaba.Care ar putea fi problema?
  5. Asta nu am incercat,revin cu edit. ///Tot la fel inseamna ca nu e nici de la loadproperty nici de la property.cfg
  6. Daca zici de property.cfg da
  7. [pawn]public LoadProperty() { new arrCoords[30][64]; new strFromFile2[256]; new File: file = fopen("property.cfg", io_read); if (file) { new idx; while (idx < sizeof(HouseInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); HouseInfo[idx][hEntrancex] = floatstr(arrCoords[0]); HouseInfo[idx][hEntrancey] = floatstr(arrCoords[1]); HouseInfo[idx][hEntrancez] = floatstr(arrCoords[2]); HouseInfo[idx][hExitx] = floatstr(arrCoords[3]); HouseInfo[idx][hExity] = floatstr(arrCoords[4]); HouseInfo[idx][hExitz] = floatstr(arrCoords[5]); HouseInfo[idx][hHealthx] = strval(arrCoords[6]); HouseInfo[idx][hHealthy] = strval(arrCoords[7]); HouseInfo[idx][hHealthz] = strval(arrCoords[8]); HouseInfo[idx][hArmourx] = strval(arrCoords[9]); HouseInfo[idx][hArmoury] = strval(arrCoords[10]); HouseInfo[idx][hArmourz] = strval(arrCoords[11]); //printf("HouseInfo hEntrancez %f",HouseInfo[idx][hEntrancez]); strmid(HouseInfo[idx][hOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255); strmid(HouseInfo[idx][hDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255); HouseInfo[idx][hValue] = strval(arrCoords[14]); HouseInfo[idx][hHel] = strval(arrCoords[15]); HouseInfo[idx][hArm] = strval(arrCoords[16]); HouseInfo[idx][hInt] = strval(arrCoords[17]); HouseInfo[idx][hLock] = strval(arrCoords[18]); HouseInfo[idx][hOwned] = strval(arrCoords[19]); HouseInfo[idx][hRooms] = strval(arrCoords[20]); HouseInfo[idx][hRent] = strval(arrCoords[21]); HouseInfo[idx][hRentabil] = strval(arrCoords[22]); HouseInfo[idx][hTakings] = strval(arrCoords[23]); HouseInfo[idx][hVec] = strval(arrCoords[24]); if(HouseInfo[idx][hVec] == 457) { HouseInfo[idx][hVec] = 411; } HouseInfo[idx][hVcol1] = strval(arrCoords[25]); HouseInfo[idx][hVcol2] = strval(arrCoords[26]); HouseInfo[idx][hDate] = strval(arrCoords[27]); HouseInfo[idx][hLevel] = strval(arrCoords[28]); HouseInfo[idx][hWorld] = strval(arrCoords[29]); printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]); idx++; } fclose(file); } return 1; }[/pawn] Asta este LoadProperty,nu folosesc functia savehouse.Probabil de aici o fi?
  8. Le-am rezolvat puteti da t/c
  9. La joburi: *Dealer de Droguri:Dar sa te duci la ferma de langa tunelul SF si sa plantezi iarba,dupa 5 minute sa te duci sa culegi. *Car Jacker:Zic eu aici ar fi bine sa furi masinile nu sa iei una de pe strada si so duci undeva.Sa faci un sistem de furt,dupa ce ai furat masina sa primesti wanted si sa trebuiasca sa duci masina cat mai repede intr-un loc. *Gunoier:Aici ar trebui sa faci,ceva de genu intri intr-un checkpoint si sa dai /trash si sa folosesti actiunea CARRY dupa care sa pui gunoiul in masina *Detectiv:Asta este un job clasic dar bun,zic eu,dar sa poata fi folosit doar de Politisti *Avocat:Deja iti dai seama dupa nume,dar cand dai /elibereaza,sau /free sa fie random adica sa il eliberezi sau nu. *Whore:Comanda /sex,dar daca zici ca este RPG eu zic sa faci o comanda /protejare sau cum vrei tu in care sa fie protejat,daca nu foloseste comanda sa primeasca o boala care sa ii scada HP. *Karatist:Comenzi /lectie /stoplectie,cel care ia jobul karatist sa primeasca direct stilul de lupta,cei care vin si vor sa invete sa primeasca dupa /lectie stilul de lupta. Idei: *Nu stiu daca ai factiunea NFS club dar daca o ai sa bagi un sistem de drift points: la un anumit punctaj sa primesti ceva bani,o masina personala,dar punctajul sa fie mare *Lucruri din Single Player:Intr-un loc sa faci un sistem de basket daca stii in single player langa casa lui sweet este mingea aceea de basket in care poti sa te joci. *Mini-Mission:Ceva care sa semene cu misiunile din single player. *Biliard:Exista,dar este pentru distractia player-ilor *Sa faci un event in aer pe o platforma stiu ca esti maper deci ai putea sa faci,dar sa fie cu tancuri LTS. Acu nu prea imi mai aduc aminte,revin cu edit mai tarziu.
  10. AleX1321

    eroare....

    Sigur ai compilat cu PAWNO din GM?De obicei asa primesc si eu eroare cand nu compilez cu PAWNO din GM
  11. Am incercat cum ai zis tu nu a mers nici asa.
  12. Am si eu o problema dau /buyhouse nici o problema imi cumpara casa etc....dar cand dau un restart ma da in casa la /stats imi apare ca am casa dar nu merge sa ma sui in masina de la casa,nici sa dau /sellhouse,si se schimba la loc pickup-ul,care ar putea fi problema?Sa fie din scriptfiles sau din GM? La biz-uri nu am probleme dau /buybiz ,restart si tot al meu este.
  13. Am si eu 2 probleme 1.Cu /rb creez fara probleme,dar cand dau /rrb sau /rrball nu imi dispar rb-urile [pawn] else if (strcmp(cmd,"/rrb",true) == 0) { if(IsPlayerConnected(playerid) && IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 1) { roadb--; DeleteClosestRoadblock(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string,sizeof(string),"[HQ]: Officer %s has removed a Roadblock, over.",sendername); SendRadioMessage(1,COLOR_BLUE,string); GameTextForPlayer(playerid,"~w~Roadblock ~r~Removed!",3000,1); } return 1; } else if (strcmp(cmd,"/rrball",true) == 0) { if(IsPlayerConnected(playerid) && IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 1) { if(PlayerInfo[playerid][pRank] >= 6 || IsPlayerAdmin(playerid)) // This being the default Chief rank in LA-RP change if neccesary. { roadb = 0; DeleteAllRoadblocks(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string,sizeof(string),"[HQ]: Officer %s has removed all Roadblocks in the area, over.",sendername); SendRadioMessage(1,COLOR_BLUE,string); GameTextForPlayer(playerid,"~b~All ~w~Roadblocks ~r~Removed!",3000,1); } } return 1; }[/pawn] [pawn]stock DeleteAllRoadblocks(playerid) { for(new i = 0; i < sizeof(Roadblocks); i++) { if(IsPlayerInRangeOfPoint(playerid, 200, Roadblocks[sX], Roadblocks[sY], Roadblocks[sZ])) { if(Roadblocks[sCreated] == 1) { Roadblocks[sCreated] = 0; Roadblocks[sX] = 0.0; Roadblocks[sY] = 0.0; Roadblocks[sZ] = 0.0; DestroyObject(Roadblocks[sObject]); } } } return 0; } stock DeleteClosestRoadblock(playerid) { for(new i = 0; i < sizeof(Roadblocks); i++) { if(IsPlayerInRangeOfPoint(playerid, 10.0, Roadblocks[sX], Roadblocks[sY], Roadblocks[sZ])) { if(Roadblocks[sCreated] == 1) { Roadblocks[sCreated] = 0; Roadblocks[sX] = 0.0; Roadblocks[sY] = 0.0; Roadblocks[sZ] = 0.0; DestroyObject(Roadblocks[sObject]); return 1; } } } return 0; }[/pawn] si a 2-a este /fa dau /fa dar nu imi apare nimic se face un spatiu dar nu e nimic,invizibil. [pawn]if(strcmp(cmd, "/fa", true) == 0 || strcmp(cmd, "/familyalliance", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } new leaders = PlayerInfo[playerid][pLeader]; new members = PlayerInfo[playerid][pMember]; result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "* /familyalliance [alliance chat]"); return 1; } if(FindIP(result)) /// Anti-Reclama { SendClientMessage(playerid, COLOR_RED, "You have kicked for Guardian , because you write an IP Adrees."); new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "FuriosBoT: {FFFF00}%s was kicked with reason: Write an IP Adreess (Reclama)",advertiser); SendClientMessageToAll(COLOR_RED,string); KickLog(string); Kick(playerid); return 1; } if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pHelper] == 0) { for(new i=0; i<MAX_ENTRY; i++) { if(!Swear[0]) continue; Cenzura(result,Swear); } } else if(leaders==5) { format(string, sizeof(string), "* The Mafia Leader [%s]: %s.", sendername, result); } else if(members==5) { format(string, sizeof(string), "* The Mafia Member [%s]: %s.", sendername, result); } else if(leaders==6) { format(string, sizeof(string), "* The Triads Leader [%s]: %s.", sendername, result); } else if(members==6) { format(string, sizeof(string), "* The Triads Member [%s]: %s.", sendername, result); } else if(leaders==12) { format(string, sizeof(string), "* Grove Street Leader [%s]: %s.", sendername, result); } else if(members==12) { format(string, sizeof(string), "* Grove Street Member [%s]: %s.", sendername, result); } else if(leaders==13) { format(string, sizeof(string), "* Ballas Leader [%s]: %s.", sendername, result); } else if(members==13) { format(string, sizeof(string), "* Ballas Member [%s]: %s.", sendername, result); } else if(leaders==14) { format(string, sizeof(string), "* Los Santos Vagos Leader [%s]: %s.", sendername, result); } else if(members==14) { format(string, sizeof(string), "* Los Santos Vagos Member [%s]: %s.", sendername, result); } else if(leaders==15) { format(string, sizeof(string), "* Variors Los Aztecas Leader [%s]: %s.", sendername, result); } else if(members==15) { format(string, sizeof(string), "* Variors Los Aztecas Member [%s]: %s.", sendername, result); } if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { SendFAMessage(0x00D56AFF , string); } if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { SendFA2Message(0x00D56AFF , string); } } return 1; }[/pawn] [pawn]public SendFAMessage(color, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLeader] == 5 || PlayerInfo[pMember] == 5 || PlayerInfo[pLeader] == 13 || PlayerInfo[pMember] == 13 || PlayerInfo[pLeader] == 14 || PlayerInfo[pMember] == 14) { SendClientMessage(i, color, string); } } } } public SendFA2Message(color, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLeader] == 6 || PlayerInfo[pMember] == 6 || PlayerInfo[pLeader] == 12 || PlayerInfo[pMember] == 12 || PlayerInfo[pLeader] == 15 || PlayerInfo[pMember] == 15) { SendClientMessage(i, color, string); } } } }[/pawn]
  14. Daca nu ai rezolvat cauta in GM [pawn] PlayerHaul[TRAILER][pCapasity] = 500; PlayerHaul[TRAILER2][pCapasity] = 500; PlayerHaul[TRAILER3][pCapasity] = 500; PlayerHaul[TRUCK4][pCapasity] = 250; [/pawn] si schimba cu asta[pawn] PlayerHaul[TRUCK][pCapasity] = 500; PlayerHaul[TRUCK2][pCapasity] = 500; PlayerHaul[TRUCK3][pCapasity] = 500; PlayerHaul[TRUCK4][pCapasity] = 250; [/pawn]
  15. AleX1321

    ajutor

    [pawn]#define CARDSTEXT Start[playerid] + PlayerText:1//100[/pawn] [pawn]print("\nPoker filterscript loaded.\n\t * * * Created by Zsolesszka * * *\n");//235[/pawn]
  16. BUMP* Scuzati de dublu post dar am nevoie de ajutor ... va rog frumos.
  17. AleX1321

    Problema

    Puteti da T/C am rezolvat.
  18. Nu este luata din nici un GM este un simplu /enter modificat.Am incercat sa pun la mai multe ganguri dar am zis primesc erori si cum mai exact sa fac sa nu primeasca wanted?
  19. Salut am facut o comanda de DM [pawn] if(strcmp(cmdtext, "/dmon", true) == 0) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { if PlayerToPoint(5,playerid,1024.4681,-981.8221,42.6512) *then { new rand = random(3); switch(rand) { case 0: SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); case 1: SetPlayerPos(playerid, -1130.5881,1057.9072,1346.4141); } SetPlayerInterior(playerid,10); format(string,sizeof(string),"* Un membru a unui gang sa dus in zona de dm tasteaza /dmon."); SendClientMessageToAll(COLOR_1GREEN, string); } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Tu nu esti intr-un gang!"); return 1; } } }[/pawn] 1.Problema e daca sunt civil sau alta factiune nu imi apare cand dau /dmon Tu nu esti intr-un gang! 2.Cum pot face cand da /dmon si omoara sa nu primeasca wanted 3.Cum pot face cand moare la DM sa il dea intr-un loc din zona de DM Si daca sunt gang cu id 5 si sunt mai departe de pickup si dau /dmon atunci imi apare tu nu esti intr-un gang Am rezolvat doua probleme au mai ramas cele 3.Va rog sa ma ajutati
  20. AleX1321

    Problema

    Am si eu acest FS http://forum.sa-mp.com/showthread.php?t=330364 dar problema este ca dau /buycar sau /v sau orice comanda din acel FS si nu imi apare nimic care ar putea fi problema?
  21. AleX1321

    Problema

    la fiecare PlayerHaul am pus id de la masina trucker,dar eu le am definite drept TRUCKER , TRUCKER1 etc... oare la fiecare playerhaul trebuie sa put TRUCKER || TRUCKER1 ?
  22. AleX1321

    Problema

    Am facut cum ai zis tu dar tot la fel se intampla
  23. Salut cum ai rezolvat?Am si eu aceiasi problema
  24. AleX1321

    Problema

    Salut am si eu o problema cu truckeru dau /buyprods un nr dar imi zice products 0/0 adica nu se schimba [pawn] if(IsATruck(newcar)) { format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Products to Businesses."); SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /load /buyprods /sellprods"); } if(strcmp(cmd, "/buyprods", true) == 0) { if(IsPlayerConnected(playerid)) { new tmpcar = GetPlayerVehicleID(playerid); new compcost = 50; if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489)) { if(IsATruck(tmpcar)) { if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity]) { new amount; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]"); return 1; } amount = strval(tmp); if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Can't buy less then 1 Product or more then 500 !"); return 1; } new check= PlayerHaul[tmpcar][pLoad] + amount; if(check > PlayerHaul[tmpcar][pCapasity]) { format(string, sizeof(string), " You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]); SendClientMessage(playerid, COLOR_GREY, string); return 1; } new cost = amount*compcost; if(GetPlayerMoney(playerid) >= cost) { PlayerHaul[tmpcar][pLoad] += amount; format(string, sizeof(string), "Products: %d/500.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); GivePlayerMoney(playerid,-cost); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } else { format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); return 1; } } else { format(string, sizeof(string), "Products: %d/500.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]); SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string); return 1; } } else { SendClientMessage(playerid, TEAM_GroveStreet_COLOR, "This Vehicle does not deliver Products."); return 1; } } } return 1; }[/pawn]
×
×
  • 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.