Limit of usage
#2

On connect, set BarrierUse[playerid] to 0. In the command:
pawn Код:
if (BarrierUse[playerid] <= 8)
{
    ++BarrierUse[playerid];
    GetPlayerPos(playerid, X, Y, Z);
    CreateObject(935, X, Y, Z, 0.0000, 0.0000, -253.5601)
}
else SendClientMessage(playerid, Red, "You have alredy used 8 barriers!");
Reply


Messages In This Thread
Limit of usage - by davve95 - 31.01.2014, 15:20
Re: Limit of usage - by Konstantinos - 31.01.2014, 15:26
Re: Limit of usage - by davve95 - 31.01.2014, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)