Jump to content

susu

Membru
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by susu

  1. La: [pawn]public OnPlayerStateChange(playerid, newstate, oldstate) { if(newcar == 1) { if(PlayerInfo[playerid][pPhousekey] == 0) { } else { SendClientMessage(playerid, COLOR_GRAD1,"You don't have permission to drive this car.Rent a room owner first."); RemovePlayerFromVehicle(playerid); } }[/pawn] Faci asa peentru fiecare casa
  2. susu

    New Music Login

    La OnPlayerConnect pui : PlayAudioStreamForPlayer(playerid, "link melodie"); La OnPlayerSpawn pui : StopAudioStreamForPlayer(playerid); //Asta in caz ca doresti sa se opreasca muzikca dupa ce se logheaza
  3. Rezolvi bugurile si scapi de lag PS: Recomand hostul 0ping
  4. susu

    Ajutor MoMu

    Giardea =)))) PS: Gireada
  5. susu

    Ajutor MoMu

    Acel text este din san andreas , poate fi schimbat cu ajutorul unui maper bun PS: Recomand Gireada!
  6. susu

    Problema /exit

    Uite : La [pawn]public SetPlayerToTeamColor(playerid) { if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //PS in cazul meu id de la factiunea hitman este 8 , nu stiu cum e la tine SetPlayerColor(playerid,0x72727200); }[/pawn]
  7. Eu am rezolvat de mult aceasta problema , puteti da /tc
  8. [pawn] if(strcmp(cmd, "/disablenewb", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1337 && (!nonewbie)) { nonewbie = 1; BroadCast(COLOR_GRAD2, " Newbie chat channel disabled by an {FFFFFF}Admin!"); SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel deactivated !"); } else if (PlayerInfo[playerid][pAdmin] >= 1337 && (nonewbie)) { nonewbie = 0; BroadCast(COLOR_GRAD2, " Newbie chat channel enabled by an {FFFFFF}Admin!"); SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel activated !"); } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!"); } } return 1; }[/pawn]
  9. Am zis ca am aceiasi problema , nu am rezolvato inca
  10. Coordonatele de la vechiul spawn le gaseti pe la sfarsit la : public SetPlayerSpawn if(PlayerInfo[playerid][pOrigin] == 1 //Los santos {SetPlayerPos(playerid, x,y,z); } Unde x , y, z sunt coordonatele
  11. Si eu am aceasi problema , totul pare a fi in regula la OnPropUpdate() si restul ce tine de case
  12. In primul rand trebuie sa vorbesti cu cei de la host sa iti faca o baza de date la sv , dupa care bagi in gm datele de la baza de date :)
  13. add : nu se lasa id-uri citeste regulamentul si te ajut ;)
  14. In cele mai multe cazuri e de la streamer deoarece streamerul pe care il foloseti este vechi , pt 0.3d si dac sv e pe versiunea 0.3e descarca ultima versiune de la streamer si dupa copileaza gm-ul din nou ;') PS: La mine a mers :)
  15. Uite unul bun : [pawn] if (realchat) { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pAdmin] >= 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s spune: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); } // ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); return 0; }[/pawn] //Daca doresti sa pastrezi chestia cu maskon .. integreazo in asta si app vezi ca ai uitat sa inchizi "}" aici: [pawn]if(realchat) { if(gPlayerLogged[playerid] == 0) { return 0; }[/pawn]
  16. Puteti da tc , am inteles ca nu se poate scoate
  17. Salut ! Mati putea ajuta sa scot si eu acest triunghi galben
  18. Il am instalat , am facut si baza de date legatura tot
  19. lam instalat , acum imi apare doar asta : [22:29:20] Script[gamemodes/gtasarp.amx]: Run time error 19: "File or function is not found"
  20. Uitati logul la server : SA-MP Dedicated Server ---------------------- v0.3e, (C)2005-2012 SA-MP Team [22:29:20] filterscripts = "" (string) [22:29:20] [22:29:20] Server Plugins [22:29:20] -------------- [22:29:20] Loading plugin: streamer.dll [22:29:20] *** Streamer Plugin v2.5.2 by Incognito loaded *** [22:29:20] Loaded. [22:29:20] Loading plugin: mysql.dll [22:29:20] SA:MP MySQL Plugin v2.1.1 Loaded. [22:29:20] Loaded. [22:29:20] Loading plugin: nativechecker.dll [22:29:20] [MySQL] Thread running. Threadsafe: Yes. [22:29:20] Loaded. [22:29:20] Loaded 3 plugins. [22:29:20] [22:29:20] Ban list [22:29:20] -------- [22:29:20] Loaded: samp.ban [22:29:20] [22:29:20] [22:29:20] Filterscripts [22:29:20] --------------- [22:29:20] Loaded 0 filterscripts. [22:29:20] Error: Function not registered: 'mysql_reconnect' [22:29:20] Error: Function not registered: 'mysql_fetch_row_format' [22:29:20] Error: Function not registered: 'mysql_debug' [22:29:20] Error: Function not registered: 'mysql_retrieve_row' [22:29:20] Error: Function not registered: 'mysql_fetch_field_row' [22:29:20] Script[gamemodes/gtasarp.amx]: Run time error 19: "File or function is not found" [22:29:20] Number of vehicle models: 0
  21. ai pus pozitiite de la i in care scrii /fmats in factions.cfg ?
  22. Defineste masinile pe care le ai in GM , inafara de cele care sunt pentru civili eu asa am facut si acum imi merge :)
  23. susu

    CMDS

    Pai dc nu il ajuti :| daca stii atat de multe? Eu l-as ajuta dar din pacate nu stiu ;. Daca stie cineva ajutatil.
  24. Am si eu o problema cand intru in truck imi scrie prods: 0/0 si daca dau /buyprods tot la fel imi arata 0/0! va rog ajutatima si pe mine [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/%d.", 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/%d.", 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] Puteti da TC am rezolvat
×
×
  • 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.