Jump to content

Ivanov

Membru
  • Posts

    5
  • Joined

  • Last visited

    Never

Ivanov's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Ivanov

    /getgif

    pai am rezolvat problema dar as vrea ca comanda sa aiba un timer adica sa o pot folosi doar o data ! nu de 100 de ori va rog sa ma ajutati ..
  2. Ivanov

    /getgif

    if(strcmp(cmd, "/getgift", true) == 0) { if(PlayerToPoint(5.0,playerid,1555.5033,-1675.6689,16.1953)) { new rand = random(5); switch(rand) { case 0: GivePlayerMoney(playerid, 1000000); //playerid, amount SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 1000000$!"); case 1: PlayerInfo[playerid][pDonateRank] = 1; //power user SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat Power User!"); case 2: PlayerInfo[playerid][pCoin] += 50; //shoppoints SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 50shoppoints!"); case 3: PlayerInfo[playerid][pExp] += 3; //rp-uri SendClientMessage(playerid, COLOR_1BLUE,"Felicitari ai castigat 3rp-uri!"); default: return 1; } } return 1; } Imi da eroare cand compilez pentru ca am bagat SCM-urile si as vrea sa imi spuneti cum sa refac comanda... si ar mai fi cv as vrea sa mearga doar odata pe player sa nu dea accelasi player de 100 de ori
  3. tot unknown command imi da, dar comanda functioneaza ...
  4. Salut, am si eu o problema cu comanda /sellbiz la sbiz-uri ... mai exact cand dau /buybiz la un biz si dupa dau /sellbiz nu apare unknown command, dar cand dau /buybiz la un sbizz si dupa dau /sellbiz merge comanda dar imi apare SERVER:UNKNOWN COMMAND if(strcmp(cmd, "/sellbiz", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pPbiskey] == 255) { SendClientMessage(playerid, COLOR_WHITE, "You don't own a bizz."); return 1; } if(PlayerInfo[playerid][pMarried] > 0) { SendClientMessage(playerid, COLOR_GREY, " You are Married, can't sell the House !"); return 1; } if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0) { Delete3DTextLabel(Text3D:SBizz3D); new bouse = PlayerInfo[playerid][pPbiskey]-100; SBizzInfo[bouse][sbLocked] = 1; SBizzInfo[bouse][sbOwned] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(SBizzInfo[bouse][sbOwner], "The State", 0, strlen("The State"), 255); strmid(SBizzInfo[bouse][sbExtortion], "No-one", 0, strlen("No-one"), 255); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,SBizzInfo[bouse][sbTill]); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", SBizzInfo[bouse][sbTill]); GameTextForPlayer(playerid, string, 10000, 3); SBizzInfo[bouse][sbTill] = 0; PlayerInfo[playerid][pPbiskey] = 255; Delete3DTextLabel(Text3D:SBizz3D); OnPropUpdate(); OnPlayerUpdate(playerid); } if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0) { Delete3DTextLabel(Text3D:Bizz3D); new bouse = PlayerInfo[playerid][pPbiskey]; BizzInfo[bouse][bLocked] = 1; BizzInfo[bouse][bOwned] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[bouse][bOwner], "The State", 0, strlen("The State"), 255); strmid(BizzInfo[bouse][bExtortion], "No-one", 0, strlen("No-one"), 255); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,BizzInfo[bouse][bTill]); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", BizzInfo[bouse][bTill]); GameTextForPlayer(playerid, string, 10000, 3); BizzInfo[bouse][bTill] = 0; PlayerInfo[playerid][pPbiskey] = 255; Delete3DTextLabel(Text3D:Bizz3D); OnPropUpdate(); OnPlayerUpdate(playerid); } else { SendClientMessage(playerid, COLOR_WHITE, "You don't own a business."); } } return 1; }
×
×
  • 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.