16.05.2016, 03:18
Код:
new IsPlayerInModShop[MAX_PLAYERS]; this should be under OnPlayerConnect // IsPlayerInModShop[playerid] = 0; public OnEnterExitModShop(playerid, enterexit, interiorid) { if(enterexit == 0) // If enterexit is 0, this means they are exiting { IsPlayerInModShop[playerid] = 0; } else { IsPlayerInModShop[playerid] = 1; } return 1; } Then we will go Under OnPlayerDisconnect where you saving data. before saving data add condition if( IsPlayerInModShop[playerid] == 0)//when ==1 it mean he is mod shop { //here your saving data }