Cannot buy
#1

How to make that if someone buy gang zone, when another players try to buy this zone they can't? Simple:

I bought gang zone with cmd /buy
Another player try to buy my zone, but he can't.
Reply
#2

Any ideas?
Reply
#3

Hello World!
Reply
#4

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
Hahaha, very funny. I need example, next time I will know how to do this.
Reply
#5

Maybe he can't buy your zone, BECAUSE you already own the zone?
Would be easier with the code IMO to see what you're trying to do.
Reply
#6

SomeRandomGuy you don't understand. I need when someone already own zone, another players cannot buy this zone.
Reply
#7

Quote:
Originally Posted by Louris
Посмотреть сообщение
SomeRandomGuy you don't understand. I need when someone already own zone, another players cannot buy this zone.
you can do that with variables, enumerators and if/case/else/etc.. statements
Reply
#8

pawn Код:
if(SomeoneOwnsZone) return SendClientMessage(playerid, -1, "Someone already owns this zone");
Quote:
Originally Posted by SomeRandomGuy123
Посмотреть сообщение
Would be easier with the code IMO to see what you're trying to do.
^What he said
Reply
#9

Code is very simple.

Код:
CMD:pp(playerid, params[])
{
    ShowPlayerDialog(playerid,1919, DIALOG_STYLE_LIST, "Parkiniu mafijos pirkimas.", "Pirkti\nInformacija", "Pasirinkti", "Iљeiti");
return 1;
}

if(dialogid == 1919)
{
if(response)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][pKreditai] < 100){SendClientMessage(playerid, 0xFF000090, "Tu neturi tiek kreditų!"); return 1;}
PlayerInfo[playerid][pKreditai] -=100;
SendClientMessage(playerid, 0xFF000090, "Nusipirkote mafiją!");
PlayerInfo[playerid][pPgaujosvadas] = true; // This code set gang owner
if(listitem == 1)
{
ShowPlayerDialog(playerid,10101,DIALOG_STYLE_MSGBOX,"Parkiniu mafijos pirkimas","Mafijos kaina: 100 kreditų.\n Mafija galioja visą laiką, tačiau jeigu būsite neaktyvus, prarasite mafiją!","Gerai","");
}
}
}
Reply
#10

any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)