Jump to content

Diabolik

Membru
  • Posts

    716
  • Joined

  • Last visited

Everything posted by Diabolik

  1. I-a vezi daca merge cu comanda asta: if(strcmp(cmd, "/contract", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "{3C9DF6}Utilizare Comanda{FFFFFF}: /contract [playerid] [suma]"); return (1) ; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_WHITE, "{3C9DF6}Utilizare Comanda{FFFFFF}: /contract [playerid] [suma]"); return (1) ; } moneys = strval(tmp); if(moneys < 10000 || moneys > 100000) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar suma este intre $10.000 si $100.000."); return (1) ; } if(PlayerInfo[playerid][pLevel] < 3) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar ai nevoie de Level 3 pentru a utiliza aceasta comanda."); return (1) ; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar nu poti pune un Contract pe un Hitman."); return (1) ; } else if(PlayerInfo[giveplayerid][pLider] == 8 && PlayerInfo[playerid][pMember] == 8) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar nu poti pune un Contract pe un Hitman."); return (1) ; } else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLider] == 8) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar nu poti pune un Contract pe un Hitman."); return (1) ; } if(IsACop(playerid) && moneys != 100000) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar te costa $10.0000 un Contract pe Cop."); return (1) ; } if(giveplayerid == playerid) { SCM(playerid, COLOR_WHITE, "Ne pare rau, dar nu poti sa pui un contract pe tine insusi."); return (1) ; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { GivePlayerMoney(playerid, (0 - moneys)); PlayerInfo[giveplayerid][pHeadValue]+=moneys; format(string, sizeof(string), "%s a pus un Contract pe %s cu %d$.",sendername, giveplayer, moneys); SendFamilyMessage(8, COLOR_YELLOW, string); format(string, sizeof(string), "Ai pus un Contract pe %s, cu %d$.",giveplayer, moneys); SCM(playerid, COLOR_LIGHTBLUE, string); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SCM(playerid, COLOR_WHITE, "{FFFFFF}^ {24BBFF}Galaxy {F65205}Omega {FFFFFF}^ Ne pare rau, dar aeasta comanda este invalida."); } } } else { format(string, sizeof(string), "Ne pare rau, dar acest jucator nu este {007502}Online{FFFFFF}.", giveplayerid); SCM(playerid, COLOR_WHITE, string); } } return (1) ; }
  2. Te rog sa imi prezinti doveziile. Multumesc. Nu era mai bine sa pui la public OnGameModeInit() SendRconCommand("hostname [0.3x] Stunt City Bacau | [UPDATE] " ) ; SendRconCommand("mapname Los Santos " ) ; SendRconCommand("weburl www.Sa-mp.Ro " ) ; SendRconCommand("gamemodetext SCB v0.5 " ) ;
  3. Bravo 10/10 folositor filterscript.
  4. Bravo o ideie originala.5/5.
  5. Bravo 4/5 daca este facut de tine.
  6. :)) Ce originalitatea ai , doamne 10/10 +1
  7. Bravo daca este facut de tine 10/10 daca nu ...0/10
  8. Diabolik

    Fight Style

    Bun tutorial , bravo dar e simplu. 4/5
  9. Mersi , cautam de mult asa ceva sa folosesc la sv meu..
  10. Sterge tot ce apartine: new Jeremino ; new EveRonE ; new SkiDo ; new AndReeA ;
  11. Baga in gm ce iti dau eu acum: new Jeremino ; new EveRonE ; new SkiDo ; new AndReeA ; Pune asta la finalul gamemodului pentru ati face functia PlayerToPoint sa iti mearga: public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return (1) ; } return (0) ; }
  12. Diabolik

    Ajutor

    Incearca asa: forward SendLogClient(color, string[]); public SendLogClient(color, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= 1) { SendClientMessage(i, color, string); } } } } Inloc de if(PlayerInfo[pAdmin] >= 1) pui fuctia la care iti trebuie comanda.
  13. Incearca asa: [pawn]new KillVehicle[ MAX_PLAYERS ] ;[/pawn]
  14. Link: http://ro.wikipedia.org/wiki/Fi%C8%99ier:New_LA_Infobox_Pic_Montage_5.jpg
  15. Frumos si folositor 10/10.
  16. Sa zicem 3/5 , putea sa arate mai bine,
×
×
  • 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.