25.02.2012, 01:43
Hello, їhow to detect when I give push to the button back OnPlayerRequestClass
I want to press the button backward, you subtract the count variable.
їHow to make?
pawn Код:
new count[MAX_PLAYERS];
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(count[playerid])
{
case 0: {SendClientMessage(playerid, -1, "1"); count[playerid]++;}
case 1: {SendClientMessage(playerid, -1, "2");}
}
return 1;
}
pawn Код:
count[playerid]--;