Quote:
Originally Posted by SuperViper
You're completely wrong...
On topic:
pawn Код:
public OnPlayerConnect(playerid) { new file[64],PlayerName[25];//Creating a variable where we can store the file path, and the variable to store the player's name. GetPlayerName(playerid,PlayerName,sizeof PlayerName);//Storing the players name in the PlayerName variable. format(file,sizeof file,"Admin/%s.ini",PlayerName);//Storing the file path with the players name. if(!fexist(file))//Checking if the file exists {//Here goes the stuff you want to do if the user is not registered. SendClientMessage(playerid,-4,"You are not registered! Please use /register <password>"); } else {//Here goes the stuff you want to do if the user is registered. SendClientMessage(playerid,-4,"You are registered! Use /login <password>"); }
FloodByPlayer[playerid] = 0; FloodTimer[playerid] = SetTimerEx("FloodCheck",MAX_FLOOD_RATE_SECS,true,"i",playerid); return true; }
public OnPlayerDisconnect(playerid,reason) { PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0. FloodByPlayer[playerid] = 0; KillTimer(FloodTimer[playerid]); return 1; }
|
Thank you! But Now I get Loose Identation on Line
pawn Код:
public OnPlayerText(playerid, text[]) {
{
FloodByPlayer[playerid] = FloodByPlayer[playerid] +1;
}
return true;
}
267 is return true;