Topic: [solved] How To Edit /age and /sex
how to edit,, Age and Sex
example: / age 18
: / Sex Malee
later entry in / finger albhy: Age: 18
Sex: Malee
PvPGN Community Forums |
forums.pvpgn.pro → [EN] The Source Code → [solved] How To Edit /age and /sex
how to edit,, Age and Sex
example: / age 18
: / Sex Malee
later entry in / finger albhy: Age: 18
Sex: Malee
// for sex
/set <nick> profile\sex <enter your sex>
// for age
/set <nick> profile\age <enter age>
oke thanx Jimmy ... good
swt gw minta yg add friend itu si somad napa albhy yg add gw -_-"
how to edit,, Age and Sex
example: / age 18
: / Sex Malee
later entry in / finger albhy: Age: 18
Sex: Malee
static int _handle_sex_command(t_connection * c, char const *text)
{
unsigned int i;
t_connection * user;
char const * dest="BOT";
for (i=0; text[i]!=' ' && text[i]!='\0'; i++); /* skip command */
for (; text[i]==' '; i++);
if (text[i]=='\0')
{
message_send_text(c,message_type_info,c,"Change your sex");
message_send_text(c,message_type_info,c,"usage: /sex <text>");
return 0;
}
snprintf(msgtemp, sizeof(msgtemp), "!sex %.128s",&text[i]);
do_whisper(c,dest,msgtemp);
return 0;
}
and this answer from BOT:
/set $nick profile\sex $2-
satria english please
zeloit write script /age & /sex
but this script must connect to Mirc
you must build script in mirc
satria english please
zeloit write script /age & /sex
but this script must connect to Mirc
you must build script in mirc
yes i know..
but not today, i'm tired
let's do this!
for age :
on (your number):text:!age*:?: {
/set $nick profile\age $2
/msg $nick Your age changed to $2 }
for sex :
on (your number):text:!sex*:?: {
/set $nick profile\sex $2
/msg $nick Your sex changed to $2 }
its a simple code but you can expand this code
cmiiw
i don't agree
on 1:text:!sex*:?: {
/set $nick profile\sex $2
/chat $nick Your sex changed to $2 }
on 1:text:!age*:?: {
/set $nick profile\age $2
/chat $nick Your age changed to $2 }
there is another way without using mirc, you can make /sex <<< not from mirc, but pure pvpgn
ex: see command /set and you can editing code
forum ini serasa punya eyang somad kwkwkwkwkw
forum ini serasa punya eyang somad kwkwkwkwkw
speak english please
You can talk on your native language in PM with your friends,
but you have to use English on public forums.
translate.google.co.id will helps if you have difficulty with english.
Thanks.
ah satria sok inggris lu orang indo aja pun lu hahahaha
satria lu udah jadi pengikut eyang somad ya?
ah satria sok inggris lu orang indo aja pun lu hahahaha
satria lu udah jadi pengikut eyang somad ya?
this is a english subforum
don't a indonesian subforum
please speak english
forums.pvpgn.pro → [EN] The Source Code → [solved] How To Edit /age and /sex