20.09.2011, 06:23
I want a player to spawn directly after registering, because there is a bug on filling informations (like Origin etc.) (works only at /tutorial)
So can anyone help me with this code
So can anyone help me with this code
Код:
if(dialogid == 12350) { if(response) { gPlayerAccount[playerid] = 0; SendClientMessage(playerid, 0x0080C0FF, "{FF0000}Highness-Reallife: Dieser Name ist nicht registriert! Registriere dich jetzt um zu spielen!"); new regstring[256], regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"{00FF00}Willkommen auf Highness RolePlay\n\n{FF0000}Dein Name: {FFFF00}%s\n\n{0080C0}URL: {FF0000}www.x.info\n\n{0080C0}Gib einen Passwort ein und zitiere es irgendwo.",regname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{0080C0}Highness RolePlay {FF0000}Registration",regstring,"Registrieren","Verlassen"); } } if(dialogid == 12347) { if(response) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); strmid(PlayerInfo[playerid][pKey], tmppass, 0, strlen(tmppass), 255); OnPlayerRegister(playerid, tmppass); new regstring[128]; new regname[64]; SpawnPlayer(playerid); SetPlayerPos(playerid,1692.3971,-2275.6677,-1.2506); GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"%s. Vi ste se uspjesno registrovali!",regname); ShowPlayerDialog(playerid,12349,DIALOG_STYLE_MSGBOX,"Registracija",regstring,"Uredu",""); } } if(dialogid == 12349) { if(response) { OnPlayerLogin(playerid,inputtext); SCM(playerid, WHITE, "Koristi /tutorijal ako zelis da sagledas tutorijal!"); SetPVarInt(playerid, "Tutorijal", 1); ShowPlayerDialog(playerid,9850,DIALOG_STYLE_MSGBOX,"{56ABD5}Noxicus RolePlay","{5983AC}Slijedi popunjavanje informacija.","Uredu",""); } else { OnPlayerLogin(playerid,inputtext); SCM(playerid, WHITE, "Koristi /tutorijal ako zelis da sagledas tutorijal!"); SetPVarInt(playerid, "Tutorijal", 1); ShowPlayerDialog(playerid,9850,DIALOG_STYLE_MSGBOX,"{56ABD5}Noxicus RolePlay","{5983AC}Slijedi popunjavanje informacija.","Uredu",""); } }