How to???
#3

pawn Код:
new Registered[MAX_PLAYERS] // should be globally declared
...
new File[50];
    format(File, sizeof(File), PFiles, pName(playerid));

    if(fexist(File)){
Registered[playerid] = 1;
...

public OnPlayerRequestClass(playerid, classid){
if(Registered[playerid] == 1){
return 1;
}
else{
// the class thing
}
return 1;
}

public OnPlayerDisconnect(playerid){
Registered[playerid] = 0;
}
Isn't that what you want?
Reply


Messages In This Thread
How to??? - by [JnA]DukeNukem - 25.04.2011, 10:09
Re: How to??? - by [JnA]DukeNukem - 25.04.2011, 10:15
Re: How to??? - by Anteino - 25.04.2011, 12:15
Re: How to??? - by [JnA]DukeNukem - 25.04.2011, 12:38
Re: How to??? - by Shoaib - 25.04.2011, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)