Jump to content

Question

Posted

Unde pun astea in GM?

[pawn]public OnPlayerCommandText(playerid, cmdtext[])

{

    if(!strcmp(cmdtext, "/enter", true))

    {

        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1479.80, -1787.05, 15.63))

        {

            SetPlayerPos(playerid, 386.33, 173.99, 1008.15);//HallEntrance

            SetPlayerInterior(playerid, 1);

        }

    }

    if(!strcmp(cmdtext, "/exit", true))

    {

        if(IsPlayerInRangeOfPoint(playerid, 3.0, 386.33, 173.99, 1008.15))

        {

            SetPlayerPos(playerid, 1479.80, -1787.05, 15.63);//hallExit

            SetPlayerInterior(playerid, 0);

        }

    }

    return 1;

}

[/pawn]

2 answers to this question

Recommended Posts

Posted

[pawn]public OnPlayer[/pawn]

Poi o pui sub celelalte comenzi asemanatoare ....

[pawn]/exit[/pawn]

La felll..

Unde vezi ca e de ex:

[pawn]if (strcmp(cmdtext, "/exemplu...", true)==0)

{

new BigString[1900];

strcat(BigString, "{FFFFFF}Exemplu\n", 1900 );

ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{FFFFFF}mic ex.", BigString, "OK","Cancel");

return 1;

}[/pawn]

Scriptez for $$, Detalii,add sampofficial.

logonou.png

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.