Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listen(integer channel, string name, key id, string message)
- {
- string username = llGetUsername(id);
- list array = llParseString2List(message,[" "],["."]);
- string lastname = llList2String(array, 0);
- string firstname = llList2String(array, 1);
- string birthdate = llList2String(array, 2);
- if (channel == channelListen)
- {
- if(llStringLength(lastname) != 0 && llStringLength(firstname) != 0 && llStringLength(birthdate) != 0)
- confirmInformations(id, firstname, lastname, birthdate);
- else
- llSay(0, username + ", l'un des champs remplis est vide ! Veuillez recommencer s'il vous plait.");
- }
- if (channel == channelDialog)
- {
- if(message == "Oui")
- {
- llSay(0, username +", votre personnage RP va pouvoir être crée. Veuillez patienter s'il vous plait, nous faisons le nécessaire.");
- integer listen1 = llListen(channelListen, "", id, "");
- integer listen2 = llListen(channelDialog, "", id, "");
- llListenControl(listen1, FALSE);
- llListenControl(listen2, FALSE);
- createNewUser(password, username, firstname, lastname, birthdate);
- }
- if(message == "Non")
- {
- llSay(0, "Bien, nous allons recommencer. Entrez vos informations.");
- llSay(0, "commande : /5 <prénom RP> <nom RP> <date de naissance RP>");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement