30.10.2009, 22:35
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsPlayerNPC(playerid)) return 1;
new playername[MAX_PLAYER_NAME];
new string[256];
if(RegStep[playerid] > 0)
{
if(RegStep[playerid] == 1)
{
if(!strcmp("homme", text, true))
{
PlayerInfo[playerid][pSex] = SEX_MALE;
SendClientMessage(playerid, YELLOW2, "D'accord, donc vous кtes un homme.");
SendClientMessage(playerid, RED, "Deuxiиme question: Quel est votre date de naissance? (jj/mm/aaaa)");
RegStep[playerid] = 2;
RandomSkin(playerid);
}
else if(!strcmp("femme", text, true))
{
PlayerInfo[playerid][pSex] = SEX_FEMALE;
SendClientMessage(playerid, YELLOW2, "D'accord, donc vous кtes une femme.");
SendClientMessage(playerid, RED, "Deuxiиme question: Quel est votre date de naissance? (jj/mm/aaaa)");
RegStep[playerid] = 2;
RandomSkin(playerid);
}
else
{
SendClientMessage(playerid, RED, "Pardon? Tapez \"homme\" ou \"femme\".");
}
}
else if(RegStep[playerid] == 2)
{
//some code here
}
return 0;
}
//some code here
return 0;
}
Any help please?