Need small help with Buying house
#2

Increase an array each time the player buys an house
pawn Код:
pInfo[playerid][Houses] ++;
And in the top of your command, check if it's higher than 3, and stop the cmd.
pawn Код:
if(pInfo[playerid][Houses] > 3) return SendClientMessage(playerid, -1, "You already have 3 houses.");
Reply


Messages In This Thread
Need small help with Buying house - by Sc0pion - 18.03.2015, 15:30
Re: Need small help with Buying house - by CalvinC - 18.03.2015, 15:32
Re: Need small help with Buying house - by iFiras - 18.03.2015, 15:37
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 17:18
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 17:45
Re: Need small help with Buying house - by SickAttack - 18.03.2015, 17:49
Re: Need small help with Buying house - by iFiras - 18.03.2015, 17:51
Re: Need small help with Buying house - by CalvinC - 18.03.2015, 17:59
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 19:26
Re: Need small help with Buying house - by SickAttack - 18.03.2015, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)