Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1. listen(integer channel, string name, key id, string message)
  2.     {
  3.         string username = llGetUsername(id);
  4.         list array = llParseString2List(message,[" "],["."]);
  5.         string lastname = llList2String(array, 0);
  6.         string firstname = llList2String(array, 1);
  7.         string birthdate = llList2String(array, 2);
  8.        
  9.         if (channel == channelListen)
  10.         {
  11.             if(llStringLength(lastname) != 0 && llStringLength(firstname) != 0 && llStringLength(birthdate) != 0)
  12.                 confirmInformations(id, firstname, lastname, birthdate);
  13.             else
  14.                 llSay(0, username + ", l'un des champs remplis est vide ! Veuillez recommencer s'il vous plait.");
  15.         }
  16.         if (channel == channelDialog)
  17.         {
  18.             if(message == "Oui")
  19.             {
  20.                 llSay(0, username +", votre personnage RP va pouvoir être crée. Veuillez patienter s'il vous plait, nous faisons le nécessaire.");
  21.                 integer listen1 = llListen(channelListen, "", id, "");
  22.                 integer listen2 = llListen(channelDialog, "", id, "");
  23.                 llListenControl(listen1, FALSE);
  24.                 llListenControl(listen2, FALSE);
  25.                 createNewUser(password, username, firstname, lastname, birthdate);
  26.             }
  27.            
  28.             if(message == "Non")
  29.             {
  30.                 llSay(0, "Bien, nous allons recommencer. Entrez vos informations.");
  31.                 llSay(0, "commande : /5 <prénom RP> <nom RP> <date de naissance RP>");
  32.             }
  33.         }
  34.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement