13.08.2018, 00:16
U can also improve the timer by doing the next thing
Do it like that after u finish the system
PHP код:
forward OneSecTimer(playerid);
public OneSecTimer(playerid)
{
switch(colorchanged[playerid])
{
case COLOR_BLACK:
{
SetPlayerColor(playerid, COLOR_WHITE);
colorchanged[playerid] = COLOR_WHITE;
}
case COLOR_WHITE:
{
SetPlayerColor(playerid, COLOR_BLACK);
colorchanged[playerid] = COLOR_BLACK;
}
}
return 1;
}

