28.05.2018, 07:11
Код:
//add this on top of the script under other new/static statements new SlapCD[MAX_PLAYERS]; new slapped[MAX_PLAYERS]; //after setting players position add this TogglePlayerControllable(playerid, false); SlapCD[playerid] = gettime() + 4; slapped[playerid] = 1; //under OnPlayerUpdate: if(SlapCD[playerid] <= gettime() && slapped[playerid] == 1) { TogglePlayerControllable(playerid, true); slapped[playerid] = 0; } //Add this under OnPlayerConnect: slapped[playerid] = 0; SlapCD[playerid] = 0;
Rep if I helped