Any help would be appreciated.
Код:
forward WelcomeMessage(playerid,flag);
public WelcomeMessage(playerid,flag)
{
if(IsPlayerNPC(playerid)) return 1;
if(IsPlayerConnected(playerid))
{
switch(flag)
{
case 0:
{
// new vers[MAX_STRING];
//format(vers,sizeof(vers),"..:: Welcome to London RP Server v%s",VERSION);
// GameTextForPlayer(playerid,"~w~Welcome on ~n~~r~London RPG Server",5000,1);
//SendClientMessage(playerid, COLOR_YELLOW,vers);
for(new w = 0; w < 20; w++) SendClientMessage(playerid,COLOR_WHITE,"");
//SetPlayerCameraPos(playerid,2033.7104,1087.2079,65.6714);
//SetPlayerPos(playerid,2030.7104,1080.2079,60.6714);
//SetPlayerCameraLookAt(playerid,2128.2332,1234.0111,60.3681);
//PlayerPlaySound(playerid,1097,X,Y,Z);
switch(random(2))
{
case 0:
{
SetPlayerCameraPos(playerid,967.4384,2559.5483,10.7003);
SetPlayerCameraLookAt(playerid,982.4874,2561.6409,22.5239);
SetPlayerPos(playerid,967.4384,2559.5483,5.7003);
}
case 1:
{
SetPlayerCameraPos(playerid,2058.8811,971.7955,54.5982);
SetPlayerCameraLookAt(playerid,2057.1230,1189.4883,39.5329);
SetPlayerPos(playerid,2058.8811,971.7955,47.5982);
}
case 2:
{
SetPlayerCameraPos(playerid,2372.1680,2141.8135,31.8135);
SetPlayerCameraLookAt(playerid,2299.5005,2142.6213,28.8228);
SetPlayerPos(playerid,2372.1680,2141.8135,27.8135);
}
}
SetPlayerVirtualWorld(playerid,playerid+1);
TextDrawShowForPlayer(playerid,Black0);
TextDrawShowForPlayer(playerid,Black1);
// TextDrawShowForPlayer(playerid,blackTD);
TextDrawShowForPlayer(playerid,cttext);
TextDrawShowForPlayer(playerid,rptext);
TextDrawShowForPlayer(playerid,vertext);
//SetTimerEx("RemoveText",20000,0,"ii",playerid,_:WText);
GameTextForPlayer(playerid,"~w~Welcome on ~n~~r~London Roleplay Server",5000,1);
SendClientMessage(playerid, COLOR_YELLOW,"..:: Welcome to London RPG Server V1");
SendClientMessage(playerid, COLOR_RED, "..:: Founder Johny Bruno");
SendClientMessage(playerid, COLOR_RED, "..:: Owner Leo");
if (udb_Exists(PlayerName(playerid)))
{
ShowPlayerLoginDialog(playerid);
SetTimerEx("LoginTimer",60000,0,"i",playerid);
}
else
ShowPlayerRegisterDialog(playerid);
}
case 1:
{
TextDrawShowForPlayer(playerid, Logo);
}
}
}
return 1;
}
Just a question for you did you code this? For the dialogs if there aren't any functions check if there is defined login dialog or something similar like that. They you can do