Help!
#6

Quote:

SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 90);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, notLoggedSpawn[0], notLoggedSpawn[1], notLoggedSpawn[2]);
spawned[playerid] = 1;
GameTextForPlayer(playerid, "~w~ You require an account! type /register", 120000, 3);
SendClientMessage(playerid, COLOR_SYSTEM_PM, "* Before you can play, you need to register. You can type /register <your password>.");
SendClientMessage(playerid, COLOR_SYSTEM_PM, "* After successful registration, identify yourself using /login <your password>.");
SendClientMessage(playerid, COLOR_SYSTEM_PM, "* This server saves your progress(money, frags, etc).");
LoginTimeout[playerid]=60;
return 1;
}

Quote:

////////////Not logged or spawned/////////////
if(spawned[playerid] == 1){
GetPlayerName(playerid,playername,sizeof(playernam e));
if (dini_Exists(udb_encode(playername))) {
if(logged[playerid] == 0) {
LoginTimeout[playerid]--;
if( LoginTimeout[playerid] == 50 ||
LoginTimeout[playerid] == 40 ||
LoginTimeout[playerid] == 30 ||
LoginTimeout[playerid] == 20 ||
LoginTimeout[playerid] == 10 ){
//Bekende gebruiker, niet ingelogd.
SendClientMessage(playerid, COLOR_GREENYELLOW, "* You are not logged in. Type /login <password> to login.");
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Note that you will receive your spawn weapons at your next spawn (next time you have died).");
format(strings,sizeof(strings),"~w~You have %d seconds to login. type /login", LoginTimeout[playerid]);
GameTextForPlayer(playerid, strings, 120000, 3);
}
if(LoginTimeout[playerid] == 1) {
SendClientMessage(playerid, COLOR_GREENYELLOW, "* You failed to login. The connection to the server will be disconnected.");
}
if(LoginTimeout[playerid] == 0) {
//Niet ingelogd binnen de minuut, kick
format(strings,sizeof(strings),"* Player %s failed to login within the 60 seconds period.",playername);
SendClientMessageToAll(COLOR_SYSTEM_GW, strings);
Kick(playerid);
}
}
} else {
LoginTimeout[playerid]--;
if( LoginTimeout[playerid] == 50 ||
LoginTimeout[playerid] == 40 ||
LoginTimeout[playerid] == 30 ||
LoginTimeout[playerid] == 20 ||
LoginTimeout[playerid] == 10 ){
//Niet bekende gebruiker, niet ingelogd.
SendClientMessage(playerid, COLOR_GREENYELLOW, "* You need to create an account on this server. Type /register <password> to do so.");
format(strings,sizeof(strings),"~w~You have %d seconds to register. type /register", LoginTimeout[playerid]);
GameTextForPlayer(playerid, strings, 120000, 3);
}
if(LoginTimeout[playerid] == 1) {
//Niet geregistreerd binnen de minuut, kick
SendClientMessage(playerid, COLOR_GREENYELLOW, "* You failed to register. The connection to the server will be disconnected.");
}
if(LoginTimeout[playerid] == 0) {
format(strings,sizeof(strings),"* Player %s failed to register within the 60 seconds period.",playername);
SendClientMessageToAll(COLOR_SYSTEM_GW, strings);
Kick(playerid);
}

?
Reply


Messages In This Thread
Problem anyone help please? - by ServerRestart - 09.07.2011, 15:56
Re: Help! - by Kush - 09.07.2011, 16:25
Re: Help! - by ServerRestart - 09.07.2011, 16:37
Re: Help! - by ||123|| - 09.07.2011, 16:46
Re: Help! - by emon - 09.07.2011, 16:50
Re: Help! - by ServerRestart - 09.07.2011, 16:53
Re: Help! - by ServerRestart - 09.07.2011, 18:01
Re: Help! - by Wesley221 - 09.07.2011, 18:03
Re: Help! - by ServerRestart - 09.07.2011, 18:06
Re: Help! - by Wesley221 - 09.07.2011, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)