Jump to content

BLitZ

Membru
  • Posts

    5
  • Joined

  • Last visited

BLitZ's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter

Recent Badges

0

Reputation

  1. Salut am si eu o problema cu /transfer, la banca if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLevel] < 5) { SendClientMessage(playerid, COLOR_GRAD1, " You must be level 5 !"); return 1; } if(PlayerInfo[playerid][pLocal] != 103 || PlayerToPoint(3.0,playerid,-13.2492,26.7422,4.1100)) { SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [playerid/PartOfName] [amount]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [playerid/PartOfName] [amount]"); return 1; } moneys = strval(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); playermoney = PlayerInfo[playerid][pAccount] ; if (moneys > 0 && playermoney >= moneys) { if(transfertime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "You can /transfer once at 30 seconds.!"); PlayerInfo[playerid][pAccount] -= moneys; PlayerInfo[giveplayerid][pAccount] += moneys; format(string, sizeof(string), " You have transferd $%d to %s's account", moneys, giveplayer,giveplayerid); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GRAD1, string); format(string, sizeof(string), " You have recieved $%d to into your account from %s", moneys, sendername, playerid); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), "%s transferd $%d to %s", sendername, moneys, giveplayer); transfertime[playerid] = 1; SetTimerEx("transfer", 30000, 0, "%d", playerid); if(moneys >= 5) { ABroadCast(COLOR_YELLOW,string,1); } printf("%s", string); PayLog(string); PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount."); } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Deci cand merg sa dau transfer(in banca) imi scrie: "you are not at the bank !" si nu imi apare warning sau error la compile....ce pot face, multumesc.
  2. Deci cand ma duc la cazino, bag la aparate, ori ca, pierd/castig, imi reseteaza banii, adica ca un fel de anti-hack, cand bagi banii tii da inapoi....cum sa fac sa nu se mai reseteze acolo?
  3. asa....deci eu fac un script RP...cap-coada nu GF-edit :|....in fine......ce v-am cerut eu este tot codul ca de pe wiki nu prea inteleg...multumesc oricum pt ajutor....nu am inchis topicul!
  4. Deci...atunci knd merg la coordonatele Textului..nu imi apare textul ci imi apare casa aia cu albastru si deasupra [bussiness] si nu imi apare textul....asta va va ajuta: [pawn]new Text:testText; testText = TextDrawCreate(1770.3512,18.7958,"Scrie /enter ca sa intri in primarie!");[/pawn]
  5. deci cand dau comanda de deschidere...e bine pana aici.. dar cand dau sa se inchida....m-i se duce inainte...fara sa revina la pozitia initiala..(de ce m-i sa sters celalat topic??:S)
×
×
  • 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.