[HELP]Dialogue Login
#1

Hey Guys,
I Have a server (currently LVRCR 1.3.3. and im wishing to add a register and login dialogue box instead of the commands
Код:
public OnPlayerConnect(playerid)
{
	new str[100], str2[100], string[100];
    GetPlayerName(playerid, str, 24);
    format(str2, 100, "\2;%s(%d) Has Joined Las Venturas Roleplay/Cops/Robbers v%s\2;", str,playerid,sversion);
	ircSay(EchoConnection, EchoChan,str2);
	format(str, 100, "%s(%d) Has Joined Las Venturas Roleplay/Cops/Robbers v%s", str,playerid,sversion);
    printf("%s",str);
    for(new i=0; i<MAX_PLAYERS_; i++) {
  	if(IsPlayerConnected(i) && i != playerid) {
    SendClientMessage(i,0x808080AA, str);
    }
}

    
    TogglePlayerClock(playerid,true);
    InShamal[playerid] = 0;
    
    SetPlayerColor(playerid,COLOR_DEADCONNECT);
    
    SetPlayerVirtualWorld(playerid,0);
    format(string, sizeof(string), "Las Venturas Roleplay/Cops/Robbers - Script Version %s",sversion);
    SendClientMessage(playerid,COLOR_WHITE, string);
    SendClientMessage(playerid,0x87CEEBAA, "This is NOT a deathmatch server. Do not randomly kill players");
    SendClientMessage(playerid,0x87CEEBAA, "Visit our website to report bugs/suggestions/complaints etc");
	SendClientMessage(playerid,0x87CEEBAA, "There is a full list of commands/rules and other information on our website" );
	SendClientMessage(playerid,0x87CEEBAA, "Visit our website at ");
	format(string, sizeof(string), "~w~WELCOME TO~n~LAS VENTURAS~n~ROLEPLAY/COPS/ROBBERS~n~~b~version %s",sversion);
	GameTextForPlayer(playerid,string, 6000, 0);
	if(udb_Exists(PlayerName(playerid))) {
	SendClientMessage(playerid,0x9ACD32AA,"This Playername is Registered. Please login before you spawn");
	SendClientMessage(playerid,COLOR_RED,"Please use /login (password) to login before you can spawn");
	}
	else
	if(!udb_Exists(PlayerName(playerid))) {
	SendClientMessage(playerid,0x9ACD32AA,"This Playername has not yet been registered. You must register on this server before you can play");
	SendClientMessage(playerid,COLOR_RED,"Please use /register (password) to register before you can spawn");
	}
	KilledHimself[playerid] =0;
	SpamStrings[playerid] =0;
	GotCopBriberecently[playerid] =0;
	CanUseArmy[playerid] =0;
	PlayerAdminLevel[playerid] =0;
	AdminKilled[playerid] =0;
	TimeToMoveTwoFourSeven[playerid] =999;
    RobbedCash[playerid] =0;
	BankCashReturns[playerid] =0;
    BankRobInsurance[playerid] =0;
    AbandonedCopCar[playerid] =1;
    HasCried[playerid] =0;
	IsSpawned[playerid] =0;
    zoneupdates[playerid] = 0;
	player_zone[playerid] = -1;
	Jailed[playerid] =0;
	Frozen[playerid] =0;
    cuffed[playerid] =0;
    Kicking[playerid] =0;
    Chlamydia[playerid] =0;
    Banning[playerid] =0;
    PlayerRobwwait[playerid] =1;
    Tazed[playerid] =0;
    hastazer[playerid] =0;
    LawEnforcementRadio[playerid] =0;
    HasLawEnforcementRadio[playerid] =0;
    ReqBk[playerid] =0;
    ReqBkRecent[playerid] =0;
    ReportedRecent[playerid] =0;
    wantsheal[playerid] =0;
    wantscure[playerid] =0;
    wantsmechanic[playerid] =0;
    RecentAskedMechanic[playerid] =0;
    RobbedCasRecent[playerid] =0;
    RobbedPlyRecent[playerid] =0;
    Wantsfood[playerid] =0;
    sellfoodrecently[playerid] =1;
    Salmonella[playerid] =0;
    askedforfood[playerid] =0;
    askedforweapons[playerid] =0;
    Wantsguns[playerid] =0;
    OfferedGuns[playerid] =0;
    Muted[playerid] =0;
    PlayerDrugs[playerid] =0;
    wantsdrugs[playerid] =0;
    solddrugsrecent[playerid] =0;
    JailTime[playerid] =0;
    StoleCopCarRecent[playerid] =0;
    playerondrugs[playerid] =0;
    playertookdrugs[playerid] =0;
    HasDrugBag[playerid] =0;
    triedtoescaperecent[playerid] =0;
    cannotescapejail[playerid] =0;
    CopWaitBetweenRefills[playerid] =0;
    VisitReq[playerid] =0;
    EscapedConvict[playerid] =0;
    VisitReqExpires[playerid] =0;
    HasHitOnHim[playerid] =0;
    InAlcatraz[playerid] =0;
    PLAYERLIST_authed[playerid]=false;
    loginchances[playerid] =0;
    BankCash[playerid] =0;
    UsedBankRecently[playerid] =0;
    InBank[playerid] =0;
    Playerrobbedbankrecent[playerid] =0;
    InDerby[playerid] =0;
    commitedcrimerecently[playerid] =0;
    copshavevc[playerid] =0;
    fixedcarrecent[playerid] =0;
    //NewCash[playerid] =0;
    OldCash[playerid] =0;
    RegularPlayer[playerid] =0;
    InAdminHQ[playerid] =0;
    autobahnowner[playerid] =0;
    drunkplayer[playerid] =0;
    lastcardrove[playerid] =999;
    InAdminMode[playerid] =0;
    HasC4[playerid] =0;
    PlantingC4[playerid] =0;
    RobbedCaligs[playerid] =0;
    HasWallet[playerid] =0;
    TrashDeliveryTime[playerid] =0;
    TrashDeliveryEarnings[playerid] =0;
    GunDeliveryLevel[playerid] =0;
    OnDelMission[playerid] =0;
    GunsDeliveryTime[playerid] =0;
    DeliveringGuns[playerid] =0;
    RobbedBank[playerid] =0;
    DeliveringCash[playerid] =0;
    totalcashdelivered[playerid] =0;
    Driveronduty[playerid] =0;
    pmsoff[playerid] =0;
    carwin[playerid] =0;
    beenrobbedrecently[playerid] =0;
    AllowPlayerTeleport(playerid,0);
    canchooseskill[playerid] =0;
    robberrank[playerid] =0;
    teamkiller[playerid] =0;
    innocentkiller[playerid] =0;
    lowwantedkiller[playerid] =0;
    CasSecLastPlayerCuffed[playerid] =999;
    LeftTwoFourSeven[playerid] =999;

    SetPlayerMapIcon( playerid, 1, 3834.0366,462.8921,40.4060, 30, 0 );
    SetPlayerMapIcon( playerid, 2, 2347.7432,1561.8536,36.9063, 52, 0 ); // bank
    SetPlayerMapIcon( playerid, 3, 1137.7289,2088.1465,11.0625, 52, 0 ); // atm 1
    SetPlayerMapIcon( playerid, 4, 2540.4976,2266.2742,10.8203, 52, 0 ); // atm 2
    SetPlayerMapIcon( playerid, 5, 2192.8577,1975.1671,12.2894, 52, 0 ); // atm 3
    SetPlayerMapIcon( playerid, 6, 2231.5820,958.6937,10.8203, 52, 0 ); // atm 4
    SetPlayerMapIcon( playerid, 7, 2174.4482,1398.4165,11.4234, 55, 0 ); // autobahn
    SetPlayerMapIcon( playerid, 8, 2283.0537,2437.0647,46.9775, 30, 0 ); // lvpd
    //SetPlayerMapIcon( playerid, 9, 2440.9717,2376.7434,11.2572, 40, 0 ); // lvpd

    
    return 1;
}
thats the current login/register code and i would like to change it to the Dialogue Boxes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)