24.09.2009, 18:31
ontop:
connect:
And i suggest save the entrance to a file or maybe this would work:
OnPlayerDisconnect:
if not save it to a file onplayerdisconnect:
make sure you have pName function, or if u have another replace the pName with your function.
EDIT: If u use saving system make sure onplayerconnect u read it if he has entrance 1. (Or if it works without it then nvm this line.)
Код:
new entrance[MAX_PLAYERS];
Код:
if(entrance[playerid] == 0) { // do something entrance[playerid] = 1; } else if(entrance[playerid] == 1) { // do sumthng. } return 1; }
OnPlayerDisconnect:
Код:
entrace[playerid] = 1;
Код:
new Data[256]; format(Data, 255, "Entrance/%s.ini", pName(playerid)); dini_IntSet(Data, "Entrance", entrance[playerid]);
EDIT: If u use saving system make sure onplayerconnect u read it if he has entrance 1. (Or if it works without it then nvm this line.)