Jump to content

qUick

Membru
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by qUick

  1. Am sters linia aia ... si tot la fel :|
  2. l-am folosit si eu, dar dupa 3 zile se buguise tot :| masinile erau pe alte nume, era dezastru total, de ce sa intamplat asta ? :(
  3. Am o problema la payday, am facut un payday dialog dar daca stau pe ESC primesc "* You haven't played long enough to obtain a PayDay."si eu am o ora pe server... Si inca o problema la dialoguri daca scriu /help sau orice alta comanda ( care este facuta dialog ) si apas ESC imi da serverul kick.. care poate fi problema ? kick(playerid) este doar la login / register (cand apesi pe exit) :|
  4. CTRL+F public OnPlayerStateChange(playerid, newstate, oldstate) dupaia o sa gasesti niste linii de genu if(newcar == 318 || newcar == 319 || newcar == 263 || newcar == 264 || newcar == 265 || newcar == 266 || newcar == 267 || newcar == 268 || newcar == 269) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8){ } else { SendClientMessage(playerid,COLOR_GREY," You are not a Hitman Member !"); RemovePlayerFromVehicle(playerid); } } modifica newcar == MYOLDCAR ca sa aflii oldcar intri in masina si scrii /oldcar .. pentru Police Cars ai public IsACopCar modifica acolo id-urile de la masini ( tot oldcar )
  5. da, este pentru RP si Da este pe samp.com, postat de mine .
  6. Poze: http://imageshack.us/g/811/mtascreen20110816010245.png/ Descriere: Balustrada din LS in SF Download: http://pastebin.com/gFsne20T De ce mi-ati sters topicul ? Fara motiv ? :| ( este si pe samp . com, tot eu sunt ! ) Facut de fratimiu ( Finlandia )
  7. qUick

    Key binds

    am cautat, eu nu vreau cu dialog, eu vreau doar un bind atat ..
  8. depinde cum ai gm.u facut, cauta JoinPed si ai acolo toate skinurile de la toate factiunile daca ai skinurile puse cu SetPlayerSkin(playerid, SKINID) cauta if ((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next"))) si sunt acolo skinurile ai inteles ? edit: daca ai cu JoinPed, mai bine il stergi si faci cu SetPlayerSkin edit 2: ti se pare o problema ? e doar o intrebare, nu stie baiatu :)
  9. qUick

    Key binds

    Cum fac, atunci cand sunt in masina si apas CTRL / ALT sa se aprinda farurile ? am incercat da nu a mers :-< Multumesc :)
  10. Am o problema la nume, numele nu se vede, trebuie sa fii foarte foarte aproape :| am pus la ongamemodeinit SetNameTagDrawDistance(1000.0); si tot la fel e ) :|
  11. am rezolvat.. am scos SetPlayerHealth(playerid,100.0); format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; si am pus SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid,100.0); format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Am facut si un mats shop .. stii cumva cum pot sa salvez materialele din shop ? adica daca pun acum in shop 3000 mats dupa restart nu mai sunt .. am incercat da nu mi.a iesit .. :-?
  12. Cand intru in armory si scriu /heal se inchide serveru :| //-----------------------------------[HEAL]------------------------------------------------------------------------- if(strcmp(cmd, "/heal", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); GetPlayerName(playerid, sendername, sizeof(sendername)); new location = PlayerInfo[playerid][pLocal]; if(!strlen(tmp)) { if(location != 255) { if(location < 99) { if(HouseInfo[location][hArm] == 1 && IsACop(playerid)) { format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } else { format(string, sizeof(string), "This place does not have armour upgrades."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } if(HouseInfo[location][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to 100 health."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"You are already healed to 100."); } } else { format(string, sizeof(string), "This place does not have healing upgrades."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } return 1; } else if(location == 101)//Restaurant { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to 100 health."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"You are already healed to 100."); } } else if(location == 102 && IsACop(playerid))//Police Armoury { SetPlayerHealth(playerid,100.0); format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } } else { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName] [price]"); return 1; } } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName] [price]"); return 1; } moneys = strval(tmp); if(moneys < 1 || moneys > 1000) { SendClientMessage(playerid, COLOR_GREY, " Healing price not below 1 or above 1000 !"); return 1; } if (giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GRAD1, " You can not heal yourself!"); return 1; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new giveambu = GetPlayerVehicleID(giveplayerid); new playambu = GetPlayerVehicleID(playerid); if(gTeam[playerid] == TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)//model { if (IsAnAmbulance(playambu) && playambu == giveambu) { new Float:tempheal; GetPlayerHealth(giveplayerid,tempheal); if(tempheal >= 100.0) { SendClientMessage(playerid, TEAM_GREEN_COLOR," That person is fully healed."); return 1; } format(string, sizeof(string), "~y~You healed ~n~~w~%s~n~~g~$%d", giveplayer,moneys); GameTextForPlayer(playerid, string, 5000, 1); GivePlayerMoney(playerid,moneys); GivePlayerMoney(giveplayerid,-moneys); new hp = 0; if(PlayerInfo[playerid][pPainPerk] > 0) { hp = 20 * PlayerInfo[playerid][pPainPerk]; hp += 100; SetPlayerHealth(giveplayerid, hp); } else { hp = 100; SetPlayerHealth(giveplayerid, 100); } PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to %d health -$%d",hp,moneys); SendClientMessage(giveplayerid, TEAM_GREEN_COLOR,string); if(STDPlayer[giveplayerid] > 0) { STDPlayer[giveplayerid] = 0; SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* You are no longer infected with a STD anymore because of the Medics help !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " One of you is not in the Ambulance / Chopper !"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); return 1; } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Crash info: [16:37:40] Crash caused by gamemodes\gf.amx, see stack trace below [16:37:40] Stack trace (most recent call first): [16:37:40] SendClientMessage (native) on line 1 in \pawno\include\float.inc [16:37:40] operator-(Float:) (entry point) float.inc este cel default, nu e nimic modificat la el :|
  13. qUick

    bug ceas :|

    am folosit 70 de ceasuri ) aici e fs-ul http://forum.sa-mp.com/showthread.php?t=74050&highlight=%5Bfs%5D+clock
  14. qUick

    bug ceas :|

    e un bug la ceas... lam facut in gm nu merge ( nu se vede ORA :| ) am scos din gm si am pus fs la fel nu se vede ora... ce fac ? :|
  15. cum pun if(WantedPoints[playerid] > 0) in GetPlayerName(playerid, pName, 24); switch(reason) { case 0: format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", pName); case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", pName); } SendCopMessage(TEAM_BLUE_COLOR, str); ?:D
  16. nu merge intru in interior chiar daca am wanted
  17. tot nu merge .. error 076: syntax error in the expression, or invalid function call
  18. waaw... am gasit si eu tutorialu ma, da nu scrie nimic de Virtual World ... Ce e gresit aici ? if(strcmp(cmdtext, "/enter", true) == 0) { if(PlayerInfo[playerid][pWantedLevel] >= 1) { if PlayerToPoint(5,playerid,999.2678,-919.9958,42.1797) *then { SetPlayerPos(playerid,-27.312299,-29.277599,1003.557250); SetPlayerInterior(playerid,4); PlayerInfo[playerid][pInt] = 4; GameTextForPlayer(playerid, "~h~24/7", 5000, 1); return 1; } else { GameTextForPlayer(playerid, "~r~Criminals can't hide in houses!", 5000, 1); return 1; } } } daca pun if(GetPlayerWantedLevel >= 1)] imi da eroare..
  19. Cum pot sa pun virtual world la case ( nu am gasit in tutorialu' gf ) ? Cum pot sa pun virtual world si sa nu pot intra daca am wanted la asta: if(strcmp(cmdtext, "/enter", true) == 0) { if PlayerToPoint(5,playerid,1199.2870,-919.0890,43.1159) *then { SetPlayerPos(playerid,363.3298,-74.6134,1001.5078); SetPlayerInterior(playerid,10); PlayerInfo[playerid][pInt] = 10; GameTextForPlayer(playerid, "~h~Burger Shot", 5000, 1); return 1; } } if(strcmp(cmdtext, "/exit", true) == 0) { if PlayerToPoint(5,playerid,363.3298,-74.6134,1001.5078) *then { SetPlayerPos(playerid,1199.2870,-919.0890,43.1159); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } }
  20. Cum fac mai multe case cu aceelasi interior ? Dar sa nu se vada playerii in interior .. intelegeti ? [ Godfather ]
  21. qUick

    problema casa

    eu te sfatuiesc sa folosesti http://forum.sa-mp.com/showthread.php?t=182435&highlight=garhouse e de 1000 de ori mai bun decat sistemul ala de case... si e mai frumos.. are si multe comenzi creeze casele foarte foarte usor.. eu am creat 100 de case in 10 min :| ;)
  22. intra in GM si cauta linia public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) o sa gasesti acolo urm: WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); adauga in fata lor // si pentru a zice unui player "nu esti din pd/fbi/ng" adauga si SendClientMessage(playerid, COLOR_RED, "Nu esti din PD/FBI/NG"); sub SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); va arata asa: //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); SendClientMessage(playerid, COLOR_RED, "Nu esti din PD/FBI/NG");
  23. pentru admin sau pentru cop ?
×
×
  • 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.