Jump to content

sTk.

Membru
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by sTk.

  1. pân? la urm? voi îmi da?i sfaturi sau m? ajuta?i cu ce v-am întrebat. dac? nu m? ajuta?i, pute?i închide topicul.
  2. Pentru c? nu vreau. A?a nu înv?? nimic.
  3. Cum definesc un admin? Am început crearea unui gamemode singur, dar nu ?tiu esen?ialul. Cum fac func?iile pentru „crearea” adminului. TOTUL VA FI F?CUT ÎNTR-UN FILTERSCRIPT. Deci, dac? pute?i s? îmi spune?i ce trebuie s? pun la include înafar? de a_samp ?i ce s? definsec. Vreau s? ?tiu cum: fac ca, comanda /makeadmin s? fie folosit? de rcon admin. Vreau s? ?tiu cum: definsec adminul. cum fac dac? la o comand? gen /ban vreau s? fie folosit? de un admin. ps: eu nu am implementat niciun admin system sau ceva de genu. Vreau s? înv?? s? fac de la 0 cu ajutorul vostru.
  4. sTk.

    scripting

    apesi f5 pt complie ( .amx )
  5. [pawn] if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerName(plo, giveplayer, sizeof(giveplayer)); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[plo][pAdmin] > 1337) { SendClientMessage(playerid, COLOR_GRAD1, "Ask the admin to goto you."); return 1; } /*else if(AFKCheck[plo] > 0) { SendClientMessage(playerid, COLOR_GREY, " Can't use this command on a afk player !"); return 1; }*/ if(PlayerInfo[playerid][pInt] == 10 && PlayerInfo[playerid][pLocal] == 500) { SendClientMessage(playerid, COLOR_GRAD2, "You can`t use this command in this place"); return 1; } if(PlayerInfo[plo][pJailed] == 1) { SendClientMessage(playerid,COLOR_GREY," You can`t use this command on that player because is in jail !"); return 1; } if(WantedLevel[plo] >= 1) { SendClientMessage(playerid,COLOR_GREY," You can`t use this command on that player, is currently Wanted !"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { GetPlayerPos(playerid, plocx, plocy, plocz); if(PlayerInfo[playerid][pInt] > 0) { SetPlayerInterior(plo,PlayerInfo[playerid][pInt]); PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt]; PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SendClientMessage(plo, COLOR_GRAD1, " You have been teleported"); format(string,sizeof(string), "[ADMIN]: %s Has teleported %s (%d) to Himself",sendername,giveplayer,plo); ABroadCast(COLOR_LIGHTRED,string, 5); SetPlayerInterior(plo,GetPlayerInterior(playerid)); SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid)); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } [/pawn] Aici vreau sa`i scrie jucatorului care este teleportat de catre un admin/helper " Admin %s has teleported you at him " dar nu stiu unde scriu.. [pawn] if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /goto [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[plo][pInt] == 10 && PlayerInfo[plo][pLocal] == 500) { SendClientMessage(playerid, COLOR_GRAD2, "You can`t go to this player"); return 1; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported"); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo)); HouseEntered[playerid] = HouseEntered[plo]; } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn] Si aici vreau sa ii apara jucatorului la care m-am teleportat... " %s s-a teleportat la tine " , Dar nu stiu cum .. adica unde pun si ce pun..poate mai si invat :)
  6. Cand un helper / admin isi da /goto sau /gethere la cineva , sa ii apara jucatorului la care s-a teleportat adminul sau helperul .. un mesaj. Unde merg ? Ce fac si ce schimb. Daca puteti sa faceti asa. " Pentru /goto faci .... " " Pentru /gethere faci .... " Multumesc
  7. Cum pot sa fac o comanda cu care schimb numele serverului , dar cand folosesti acea comanda sa ti se schimbe numele si la tasta " TAB " iar cand un admin 1338 o foloseste sa apara si celor de pe server...
  8. sTk.

    DNS

    ok , am sa vad ce spune administratorul forumului. multumesc.
  9. sTk.

    DNS

    Mi-a facut cineva dns. Trebuie sa modific undeva in gm ca sa mearga dns ? Adica sa nu scriu ip , sa scriu samp.nume.ro
  10. Inainte sa urc gm pe ftp , cand dadeam /exit intr-o casa , ma dadea in fata ei. Acuma nu mai merge /exit , iar daca ies prin sageata aia galbena , ma da prin San Andreas.. ( oriunde ) Cum fac sa mearga /exit la toate casele ? Si sa ii dea pe jucatori in fata casei detinute , sau la rent.
  11. Scuzati , am rezolvat. Multumesc.
  12. Cum rezolv? Apare Unknow la Mode. ( in lista serverelor )
  13. le aveam exact asa ... si tot nu imi apare la /stats :)
  14. Cum schimb la /stats , unde este " Sex: [ 66 ] " este masculin. Cum fac sa scrie direct ce a ales la tutorial jucatorul ? Daca a ales Masculin sa scrie acolo , Masculin nu id`ul. Si la Origine lafel , in loc de LS imi apare ca si in poza. Ce trebuie sa modific ? Si unde ?
  15. [glow=red,2,300]Stiu sigur , ca este o comanda care iti schimba numele la server , dar este diferita de /rcon hostname. Aceasta comanda cand este utilizata , le apare tuturor jucatorilor asa. " x a schimbat numele serverului in : [ nume ] " Iar cand apesi TAB apare sus in stanga numele pe care l-ai schimbat , si si in lista de servere. O idee ? .. Cum ar trebui sa fac aceea comanda , sau daca stiti ... sa ma ajutati va rog [/glow]
  16. sTk.

    Un warning..

    mersi , le-am asezat una sub alta , a mers multumesc.
  17. sTk.

    Un warning..

    Imi da acest warning la complie. [pawn]C:\Users\Andrei\Desktop\Criminals RolePlay\gamemodes\gf.pwn(14434) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. [/pawn] Si asta este linia.. [pawn] SendClientMessage(playerid, COLOR_WHITE, " Ai primit viata si armura !");[/pawn]
  18. Cum fac sa fie comanda /heal intr-un biz. Eu de exemplu vreau la bizul 3 sa am /heal , dar sa primeasca si armura ( Armoury ) ... Imi ziceti va rog cum sa fac ? Multumesc mult.
  19. As dori un sistem de /supremacy Un admin rcon , tasteaza /supremacy , iar cei din ganguri , mafii in acel moment le apare un text in care li se indica sa dea /joinsupremacy Cand se da /joinsupremacy , sai teleporteze pe toti intr-o zona intinsa , de preferat aeroport lv. Cand intra acolo sa primeasca m4 , mp5 , rifle si deagle. Deasemenea cand se da /supremacy sa nu se mai poata intra.
  20. sTk.

    PROBLEMA OBJECT.

    am rezolvat , multumesc vampire_md
  21. Multumesc , am rezolvat. M-a ajutat vampir_md
×
×
  • 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.