04.04.2012, 11:05
pawn Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid))) {
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"You are already registered, write your chosen password to log in! ","Login","Quit");
}
else {
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Welcome to CC:RP , Our database tell us your new here, chose your password to register!","Register","Quit");
}
if(!IsRolePlayName(playerid)) {
SendClientMessage(playerid, COLOR_RED, "(KICK) Please come back and use a RolePlay name! (Name_Surname)");
Kick(playerid);
//Stretche
RemovePlayerAttachedObject(playerid, 0);
Died[playerid] = 0;
StretcherLoaded[playerid] = false;
UsingStretcher[playerid] = false;
PatientID[MedicID[playerid]] = -50;
MedicID[PatientID[playerid]] = -50;
MedicID[playerid] = -50;
PatientID[playerid] = -50;
Stretcher[playerid] = -50;
Loaded2Stretcher[playerid] = false;
StretcherSpawned[playerid] = false;
return 1;
}
return 1;
}