Jump to content
  • 0

Problema register


illegitimate

Question

Salut,am si eu o problema...deci intru pe server si  cand sa dau la inregistrare sa scriu Masculin , tot se creaza spatii libere...ca si cum ai face spam,nu se intampla nimic cand scriu Masculin sau Feminin,de la ce poate fi?

[pawn]//=============================================================================================================================================================

// = SetPlayerSpawn

//=============================================================================================================================================================

public SetPlayerSpawn(playerid)

{

if(IsPlayerConnected(playerid))

{

    if(PlayerInfo[playerid][pTut] == 0)

    {

gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;

TogglePlayerControllable(playerid, 0);

RegistrationStep[playerid] = 1;

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Bine ai venit pe {ff0000}saveG.ro: RPG Server [0.3D] (BETA){ffffff}.");

SendClientMessage(playerid, COLOR_GREEN, "");

SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Ce sex ai? [{ffd700}Masculin {ffffff}sau {ffd700}Feminin{ffffff}]?");

SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

    }

new rand;

new house = PlayerInfo[playerid][pPhousekey];

if(PlayerPaintballing[playerid] != 0)

{

    ResetPlayerWeapons(playerid);

      GivePlayerWeapon(playerid, 29, 999);

    rand = random(sizeof(PaintballSpawns));

SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);

    return 1;

}

if(PlayerInfo[playerid][pJailed] == 1)

{

            ResetPlayerWeapons(playerid);

            SetPlayerWantedLevel(playerid, 0);

            WantedLevel[playerid] = 0;

            WantedPoints[playerid] = 0;

    SetPlayerInterior(playerid, 10);

SetPlayerPos(playerid,218.9596,111.0268,999.0156);

SendClientMessage(playerid, COLOR_WHITE, "{30a030}[saveG]: {ffffff}Sentinta incompleta, inapoi la Inchisoare.");

return 1;

}

if(PlayerInfo[playerid][pJailed] == 2)

{

    SetPlayerInterior(playerid, 0);

SetPlayerPos(playerid,268.5777,1857.9351,9.8133);

SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);

ResetPlayerWeapons(playerid);

return 1;

}

if(house !=255)

{

    if(SpawnChange[playerid])

    {

SetPlayerToTeamColor(playerid);

SetPlayerInterior(playerid,HouseInfo[house][hInt]);

SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);

PlayerInfo[playerid][pLocal] = house;

PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];

return 1;

}

}[/pawn]

[pawn]//=============================================================================================================================================================

// = OnPlayerText

//=============================================================================================================================================================

public OnPlayerText(playerid, text[])

{

new giver[MAX_PLAYER_NAME];

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new tmp[256];

new string[256];

new giveplayerid;

if(PlayerInfo[playerid][pMuted] == 1)

{

SendClientMessage(playerid, TEAM_CYAN_COLOR, "{30a030}[icePlay]: {ffffff}Ne pare rau, dar ai Mute.");

return 0;

}

    if(FindIP(text)) /// Anti-Reclama

    {

        SendClientMessage(playerid, COLOR_RED, "{30a030}[icePlay]: {ff6347}Ai primit Kick de la IcePlay Guardian.");

        new advertiser[MAX_PLAYER_NAME];

GetPlayerName(playerid, advertiser, sizeof(advertiser));

format(string, sizeof(string), "{30a030}[icePlay]: {ff6347} %s a primit Kick de la IcePlay Guardian, Motiv: Server Advertising.",advertiser);

SendClientMessageToAll(0xFF6347AA,string);

KickLog(string);

        Kick(playerid);

        return 1;

    }

if(RegistrationStep[playerid] > 0)

{

    if(RegistrationStep[playerid] == 1)

    {

        new idx;

    tmp = strtok(text, idx);

    if((strcmp("masculin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Masculin")))

{

                GetPlayerName(playerid, sendername, sizeof(sendername));

    PlayerInfo[playerid][pSex] = 1;

    RegistrationStep[playerid] = 2;

    SetPlayerSkin(playerid, 3);

    PlayerInfo[playerid][pChar] = 18;

    ClearChatbox(playerid, 10);

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    format(string, sizeof(string), "» Ok %s, esti Barbat.", sendername);

    SendClientMessage(playerid, COLOR_WHITE, string);

    SendClientMessage(playerid, COLOR_1BLUE, "{30a030}[icePlay]: {ffffff}Ce varsta ai? [{ffd700}zz{ffffff}/{ffd700}ll{ffffff}/{ffd700}aa{ffffff}]?");

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    return 0;

}

else if((strcmp("feminin", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Feminin")))

{

                GetPlayerName(playerid, sendername, sizeof(sendername));

    PlayerInfo[playerid][pSex] = 2;

    RegistrationStep[playerid] = 2;

    SetPlayerSkin(playerid, 41);

    PlayerInfo[playerid][pChar] = 41;

    ClearChatbox(playerid, 10);

    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    format(string, sizeof(string), "» Ok %s, esti Femeie.", sendername);

    SendClientMessage(playerid, COLOR_WHITE, string);

    SendClientMessage(playerid, COLOR_1BLUE, "{30a030}[icePlay]: {ffffff}Ce varsta ai? [{ffd700}zz{ffffff}/{ffd700}ll{ffffff}/{ffd700}aa{ffffff}]?");

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    return 0;

}

else

{

                ClearChatbox(playerid, 10);

                ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

                SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    SendClientMessage(playerid, COLOR_1BLUE, "{30a030}[icePlay]: {ffffff}Ce sex ai? [{ffd700}Masculin {ffffff}sau {ffd700}Feminin{ffffff}]?");

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

}

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_GREEN, "_____________________________________________");

    SendClientMessage(playerid, COLOR_1BLUE, "{30a030}[icePlay]: {ffffff}Ce varsta ai? [{ffd700}zz{ffffff}/{ffd700}ll{ffffff}/{ffd700}aa{ffffff}]?");

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

    return 0;

}

new check = year - strvalEx(DateInfo[2]);

if(check == year)

{

                SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    SendClientMessage(playerid, COLOR_1BLUE, "{30a030}[icePlay]: {ffffff}Ce varsta ai? [{ffd700}zz{ffffff}/{ffd700}ll{ffffff}/{ffd700}aa{ffffff}]?");

    SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________");

    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

    return 0;

}

if(strvalEx(DateInfo[1]) > month)

{

    check -= 1;

}

else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)

{

    check -= 1;

}

ClearChatbox(playerid, 10);

PlayerInfo[playerid][pOrigin] = 1;

PlayerInfo[playerid]


= check;

GetPlayerName(playerid, sendername, sizeof(sendername));

format(string, sizeof(string), "» Ok %s, ai %d anii.", sendername, PlayerInfo[playerid]


);

SendClientMessage(playerid, COLOR_WHITE, string);

ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);

TutTime[playerid] = 1;

RegistrationStep[playerid] = 0;

SendClientMessage(playerid, COLOR_1GREEN, "{30a030}[icePlay]: {ffffff}Acuma iti vom prezenta un Tutorial legat de Server.");

return 0;

    }

return 0;

}

[/pawn]

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.