Spol, Drzava itd...

Započeo virtuozo, April 25, 2010, 18:50:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

virtuozo

Ovako uradio sam login i register sistem i sada kako da uradim ono isto u dialogu Muško da biram godine itd...uradio sam to parputa al sad ne moze uc u glavu da me krhness xD

iYoko

To je prevelika skripta da bi ti netko sad radio.

virtuozo

PA de ak nek ima nek posta...sta vam je mrsko :S pls

Ovo ide na kraj skoro ispod skinova od mafija/bandi/organizacija
if(RegistrationStep[playerid] > 0)
{
    if(RegistrationStep[playerid] == 1)
    {
        new idx;
    tmp = strtok(text, idx);
    if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
{
    PlayerInfo[playerid][pSex] = 1;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Male.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your birthdate? (Use dd/mm/yyyy)");
    RegistrationStep[playerid] = 2;
    return 0;
}
else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
{
    PlayerInfo[playerid][pSex] = 2;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are a Female.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your birthdate? (Use dd/mm/yyyy)");
    RegistrationStep[playerid] = 2;
    return 0;
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Are you a Male or Female? (Type in what you are).");
}
return 0;
}
else if(RegistrationStep[playerid] == 2)
    {
        new year, month,day;
getdate(year, month, day);
        new DateInfo[3][20];
split(text, DateInfo, '/');
if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    return 0;
}
new check = year - strval(DateInfo[2]);
if(check == year)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
    return 0;
}
if(strvalEx(DateInfo[1]) > month)
{
    check -= 1;
}
else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
{
    check -= 1;
}
PlayerInfo[playerid][pAge] = check;
format(string, sizeof(string), "Ok, znaci ti imas %d godina.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_LIGHTRED, "Odkud si? (Napisi: Hrvatska, Bosna ili Srbija)");
return 0;
    }
    else if(RegistrationStep[playerid] == 3)
    {
        new idx;
    tmp = strtok(text, idx);
    if((strcmp("Hrvatska", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Hrvatska")))
{
    PlayerInfo[playerid][pOrigin] = 1;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from the Hrvatska.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial.");
RegistrationStep[playerid] = 0;
    TutTime[playerid] = 1;
    return 0;
}
else if((strcmp("Bosna", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Bosna")))
{
    PlayerInfo[playerid][pOrigin] = 2;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Bosna.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial.");
RegistrationStep[playerid] = 0;
    TutTime[playerid] = 1;
    return 0;
}
else if((strcmp("Srbija", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Srbija")))
{
    PlayerInfo[playerid][pOrigin] = 3;
    SendClientMessage(playerid, COLOR_YELLOW2, "Ok, so you are from Srbija.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Thank you for filling in all the information, now you will proceed to the Tutorial.");
RegistrationStep[playerid] = 0;
    TutTime[playerid] = 1;
    return 0;
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Odkud si? (Napisi: Hrvatska, Srbija ili Bosna)");
}
return 0;
    }
return 0;
}


Zatim ovo ubaci pod if(IsPlayerConnected(playerid))
SetPlayerToTeamColor(playerid);
if(PlayerInfo[playerid][pOrigin] == 1)//Srbija
{
    SetPlayerPos(playerid,1129.0839,-1489.7538,22.7690);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 2)//Hrvatska
{
    SetPlayerPos(playerid,1129.0839,-1489.7538,22.7690);
SetPlayerFacingAngle(playerid, 262.9963);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 3)//Bosna
{
    SetPlayerPos(playerid,1129.0839,-1489.7538,22.7690);
SetPlayerFacingAngle(playerid, 272.3543);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,15);
PlayerInfo[playerid][pInt] = 15;
}
return 1;
}
return 1;
}



Mozda sam nesto izostavio al ak si vec radio skuzit ces  ;)

virtuozo

ne to xD...u dialogu da je uradjeno...:D

r4z0r

Pa samo transformisi , 'oces i muzicku ?
Procitaj par puta za sto sluzimo , nismo ti obavezni dati gotovu scriptu .

iYoko

Cek ti oces to dosdat u GF Mode?

Ak znas napravit dialog znat ces i to, nitko ti nece dat gotovu skriptu
Respekt: [H]265, John, [03]Garsino, LordShigi, Dujma, Carlsson, Randy, Jacobs, Hu5o, Toni, Lukas, Curtis, Ivo, Hawks, Jack, Koksildo, gonss

Haha OMG => http://zaslike.com/files/9rd5urq94yqagvdsx3i.png [ovo nema nigdje]