Jump to content

IstuntmanI

Membru
  • Posts

    3.897
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by IstuntmanI

  1. Uite aici, ti-am modificat si putin comanda: CMD:givecoins(playerid, params[]) { if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE : /givecoins [playerid] [amount]"); if( !IsPlayerConnected(giveplayerid) ) return SendClientMessage(playerid, COLOR_WHITE, "ERROR : That player is not connected!"); if( giveplayerid == playerid ) return SendClientMessage(playerid, COLOR_WHITE, "ERROR : You cant send yourself coins!"); if( amount > pInfo[playerid][Coins] ) return SendClientMessage(playerid, COLOR_WHITE, "ERROR : You dont have that amount of coins!"); new string[128],file[100],Name[MAX_PLAYER_NAME],Ip[16],name[MAX_PLAYER_NAME]; GetPlayerName(giveplayerid, name, sizeof(name)); GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name); format(string, sizeof(string), "SERVER : You have succesfully sent %d coins to %s!", amount, name); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "SERVER : %s has given you %d coins!", Name, amount); SendClientMessage(giveplayerid, COLOR_WHITE, string); pInfo[giveplayerid][Coins] += amount; pInfo[playerid][Coins] -= amount; dini_IntSet(file,"Coins", pInfo[giveplayerid][Coins]); dini_IntSet(file,"Coins", pInfo[playerid][Coins]); return 1; }
  2. Posteaza si liniile de mai sus. Cele 5 de mai sus de preferat.
  3. http://www.sa-mp.ro/forum/index.php/topic,3122.0.html
  4. Ce tare :>, 5/5.
  5. Tu taci, ca mereu cand raspunzi tu la "Discutii scripting" esti praf, nu stii nimic aproape, si ma doare-n ... ceapa de ce spui tu de mine, stii cum se spune, sa nu bagi prostii in seama. Acum te-am bagat putin in seama, dar noh. Cine ma cunoaste mai bine stie ca stiu destul de bine scripting, ma rog. Sa nu dam in OFF-TOPIC. EDIT: Fi-ti atenti ce PM: Banned = Banat, Ban = Baneaza ... of, vai de capul tau. What a noob =)), sper sa ia warn. PS: Ce legatura are matematica cu ce facem noi aici ? Eu scripting, tu nu stiu ce faci. Are legatura doar pe la unele calcule, la floaturi, dar nu e asa importanta matematica in pawno ... duh
  6. Geniule, tu nici asa ceva nu poti sa faci ... 3/5 )
  7. Probleme godfather!
  8. Posteaza in acest topic: http://forum.sa-mp.com/showthread.php?t=185712 , poate te ajuta autorul ...
  9. Frumos, 4/5 :D
  10. Da-le si pe cele 5-10 de deasupra.
  11. Daca mai ajuti alta data pe cineva care posteaza Probleme Godfather inafara topicului pentru aceste probleme iei warn. PROBLEME GODFATHER!
  12. Incearca asa: if (strcmp(cmdtext, "/evadare", true)==0) { if(PlayerInfo[playerid][pJailTime] >= 0) { if(PlayerToPoint(25.0,playerid,630.5901,-571.8199,16.3359) { SendClientMessage(playerid, COLOR_BLUE, "HQ: Felicitari, ai reusit sa evadezi!"); PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); ClearCrime(playerid); SetPlayerToTeamColor(playerid); TextDrawHideForPlayer(playerid, Textdraw1[playerid]); } else { SendClientMessage(playerid, COLOR_WHITE,"Nu esti la punctul de evadare!"); SendClientMessage(playerid, COLOR_RED,"Ti-am pus un checkpoint unde poti evada!"); CP[playerid] = 152; SetPlayerCheckpoint(playerid,630.5901,-571.8199,16.3359); } } else { SendClientMessage(playerid, COLOR_RED,"Nu ai jail!"); } return 1; }
  13. Probleme godfather: http://www.sa-mp.ro/forum/index.php/topic,5356.0.html
  14. Uite ca la mine au mers toate in GM xD Pui la OnGameModeInit: SendRconCommand("loadfs nume_fs_1"); SendRconCommand("loadfs nume_fs_2"); SendRconCommand("loadfs nume_fs_3"); etc.......
  15. http://www.sa-mp.ro/forum/index.php?action=search2 - am mai zis de 1000 de ori + nu suntem forum de MTA.
  16. 5/5, foarte frumoasa, dar cam multi copaci. PS: Vad ca e la moda sa te lasi de San Andreas )
  17. 3/5...
  18. Probleme godfather.
  19. Viagra, lol xD, 3/5
  20. La finalul comenzilor trebuie sa pui return 1;, si la finalul OnPlayerCommandText-ului trebuie sa pui return 0;. PRAF!
  21. Ar trebui sa citesti regulile: http://www.sa-mp.ro/forum/index.php/topic,2825.0.html si sa postezi aici: http://www.sa-mp.ro/forum/index.php/topic,5356.0.html
  22. Asta este forum de SA:MP. www.mtasa.com <- MTA.
  23. 3 reguli incalcate: 1.Titlul. 2.Nu se cer scripturi/scripter. 3.Nu se posteaza id-uri.
×
×
  • 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.