Jump to content
  • 0

cum sa scap?


Stefan

Question

7 answers to this question

Recommended Posts

Cred ca asta e altceva nu gaseste cu OnPlayerConnect

[pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerConnect=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

public OnPlayerConnect(playerid)

{

if(Security != 0)

{

    SCM(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");

    Kick(playerid);

    return 1;

    }

    VipInfo[playerid][vCar] = -1;

    VipInfo[playerid][hTime] = 1;

    VipInfo[playerid][aTime] = 1;

    if(IsPlayerNPC(playerid)) return 1;

    ShowInfo[ playerid ] = TextDrawCreate(18.000000, 145.000000, "_");

TextDrawBackgroundColor(ShowInfo[ playerid ], 255);

TextDrawFont(ShowInfo[ playerid ], 1);

TextDrawLetterSize(ShowInfo[ playerid ], 0.370000, 1.400000);

TextDrawColor(ShowInfo[ playerid ], -1);

TextDrawSetOutline(ShowInfo[ playerid ], 0);

TextDrawSetProportional(ShowInfo[ playerid ], 1);

TextDrawSetShadow(ShowInfo[ playerid ], 1);

TextDrawUseBox(ShowInfo[ playerid ], 1);

TextDrawBoxColor(ShowInfo[ playerid ], 0x00000085);

TextDrawTextSize(ShowInfo[ playerid ], 252.000000, -10.000000);

    IsInShop[playerid] = 0;

KeyTimer[playerid] = -1;

wait[playerid] = 0;

count1[playerid] = 0;

HasBoughtNewSkin[playerid] = 0;

LastPos[playerid][0] = 0;

LastPos[playerid][1] = 0;

LastPos[playerid][2] = 0;

LastPos[playerid][3] = 0;

LastInterior[playerid] = 0;

LastVW[playerid] = 0;

LastSkin[playerid] = 0;

TextdrawActive[playerid] = 0;

Skin[playerid] = 0;

IsDead[playerid] = 0;

    BowlingMinutes[playerid] = 0;

    BowlingSeconds[playerid] = 0;

BowlingStatus[playerid] = F_BOWLING_THROW;

PinsLeft[1][playerid] = 0;

AbleToPlay[playerid] = 0;

PlayersBowlingScore[playerid] = 0;

if(!dini_Exists(PlayerBowlingFile(playerid)))

    {

        dini_Create(PlayerBowlingFile(playerid));

        dini_IntSet(PlayerBowlingFile(playerid),"BestScore",0);

        dini_Set(PlayerBowlingFile(playerid),"LastTime","Never");

        dini_IntSet(PlayerBowlingFile(playerid),"Stirkes",0);

    }

    if(dini_Exists(PlayerBowlingFile(playerid)))

    {

BestScore[playerid] = dini_Int(PlayerBowlingFile(playerid),"BestScore");

LastTimePlayed[playerid] = dini_Get(PlayerBowlingFile(playerid),"LastTime");

PlayerStrikes[playerid] = dini_Int(PlayerBowlingFile(playerid),"Strikes");

}

//TextDrawShowForPlayer(playerid, Textdraw187);

    TextDrawShowForPlayer(playerid, Textdraw770);

    TextDrawShowForPlayer(playerid, Textdraw771);

    //TextDrawShowForPlayer(playerid, Textdraw190);

    TextDrawShowForPlayer(playerid, Textdraw772);

    TextDrawShowForPlayer(playerid, Textdraw773);

    TextDrawShowForPlayer(playerid, Textdraw774);

    TextDrawShowForPlayer(playerid, Textdraw775);

    TextDrawShowForPlayer(playerid, Textdraw776);

    TextDrawShowForPlayer(playerid, Textdraw777);

    TextDrawShowForPlayer(playerid, Textdraw778);

    TextDrawShowForPlayer(playerid, Textdraw779);

    TextDrawShowForPlayer(playerid, Textdraw7710);

    TextDrawShowForPlayer(playerid, Textdraw7711);

    TextDrawShowForPlayer(playerid, Textdraw7712);

    TextDrawShowForPlayer(playerid, Textdraw7713);

    TextDrawShowForPlayer(playerid, Textdraw7714);

    TextDrawShowForPlayer(playerid, Textdraw7715);

    TextDrawShowForPlayer(playerid, Textdraw7716);

    TextDrawShowForPlayer(playerid, Textdraw7717);

    TextDrawShowForPlayer(playerid, Textdraw7718);

    TextDrawShowForPlayer(playerid, Textdraw7719);[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Link to comment
Share on other sites

am cautat si nu scrie uita ca nu am copiat atunci totul

[pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerConnect=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

public OnPlayerConnect(playerid)

{

if(Security != 0)

{

    SCM(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");

    Kick(playerid);

    return 1;

    }

    VipInfo[playerid][vCar] = -1;

    VipInfo[playerid][hTime] = 1;

    VipInfo[playerid][aTime] = 1;

    if(IsPlayerNPC(playerid)) return 1;

    ShowInfo[ playerid ] = TextDrawCreate(18.000000, 145.000000, "_");

TextDrawBackgroundColor(ShowInfo[ playerid ], 255);

TextDrawFont(ShowInfo[ playerid ], 1);

TextDrawLetterSize(ShowInfo[ playerid ], 0.370000, 1.400000);

TextDrawColor(ShowInfo[ playerid ], -1);

TextDrawSetOutline(ShowInfo[ playerid ], 0);

TextDrawSetProportional(ShowInfo[ playerid ], 1);

TextDrawSetShadow(ShowInfo[ playerid ], 1);

TextDrawUseBox(ShowInfo[ playerid ], 1);

TextDrawBoxColor(ShowInfo[ playerid ], 0x00000085);

TextDrawTextSize(ShowInfo[ playerid ], 252.000000, -10.000000);

    IsInShop[playerid] = 0;

KeyTimer[playerid] = -1;

wait[playerid] = 0;

count1[playerid] = 0;

HasBoughtNewSkin[playerid] = 0;

LastPos[playerid][0] = 0;

LastPos[playerid][1] = 0;

LastPos[playerid][2] = 0;

LastPos[playerid][3] = 0;

LastInterior[playerid] = 0;

LastVW[playerid] = 0;

LastSkin[playerid] = 0;

TextdrawActive[playerid] = 0;

Skin[playerid] = 0;

IsDead[playerid] = 0;

    BowlingMinutes[playerid] = 0;

    BowlingSeconds[playerid] = 0;

BowlingStatus[playerid] = F_BOWLING_THROW;

PinsLeft[1][playerid] = 0;

AbleToPlay[playerid] = 0;

PlayersBowlingScore[playerid] = 0;

if(!dini_Exists(PlayerBowlingFile(playerid)))

    {

        dini_Create(PlayerBowlingFile(playerid));

        dini_IntSet(PlayerBowlingFile(playerid),"BestScore",0);

        dini_Set(PlayerBowlingFile(playerid),"LastTime","Never");

        dini_IntSet(PlayerBowlingFile(playerid),"Stirkes",0);

    }

    if(dini_Exists(PlayerBowlingFile(playerid)))

    {

BestScore[playerid] = dini_Int(PlayerBowlingFile(playerid),"BestScore");

LastTimePlayed[playerid] = dini_Get(PlayerBowlingFile(playerid),"LastTime");

PlayerStrikes[playerid] = dini_Int(PlayerBowlingFile(playerid),"Strikes");

}

//TextDrawShowForPlayer(playerid, Textdraw187);

    TextDrawShowForPlayer(playerid, Textdraw770);

    TextDrawShowForPlayer(playerid, Textdraw771);

    //TextDrawShowForPlayer(playerid, Textdraw190);

    TextDrawShowForPlayer(playerid, Textdraw772);

    TextDrawShowForPlayer(playerid, Textdraw773);

    TextDrawShowForPlayer(playerid, Textdraw774);

    TextDrawShowForPlayer(playerid, Textdraw775);

    TextDrawShowForPlayer(playerid, Textdraw776);

    TextDrawShowForPlayer(playerid, Textdraw777);

    TextDrawShowForPlayer(playerid, Textdraw778);

    TextDrawShowForPlayer(playerid, Textdraw779);

    TextDrawShowForPlayer(playerid, Textdraw7710);

    TextDrawShowForPlayer(playerid, Textdraw7711);

    TextDrawShowForPlayer(playerid, Textdraw7712);

    TextDrawShowForPlayer(playerid, Textdraw7713);

    TextDrawShowForPlayer(playerid, Textdraw7714);

    TextDrawShowForPlayer(playerid, Textdraw7715);

    TextDrawShowForPlayer(playerid, Textdraw7716);

    TextDrawShowForPlayer(playerid, Textdraw7717);

    TextDrawShowForPlayer(playerid, Textdraw7718);

    TextDrawShowForPlayer(playerid, Textdraw7719);[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Link to comment
Share on other sites

Nu am de unde sa stiu care din alea e ala corect.

Fa si tu niste teste si vezi care sunt alea bune, pune // in fata la cate 2 de odata si vezi daca dispar alea.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.