31.01.2014, 15:26
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!");