Jump to content

Question

Posted

nu imi merge comanda enter :| ..

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

    {

  {

if PlayerToPoint(5,playerid,836.9717,-2048.9272,13.1674)

*then

{

  SetPlayerPos(playerid,346.870025,309.259033,999.155700);

  SetPlayerInterior(playerid,6);

  SendClientMessage(playerid,COLOR_RED,"*** Welcome to the Drugs Store  !");

  return 1;

}

}

}[/pawn]

[pawn]AddStaticPickup(1239,23,836.9717,-2048.9272,13.1674);[/pawn]

pozitia [pawn]AddPlayerClass(288,836.9717,-2048.9272,13.1674,181.8275,0,0,0,0,0,0); // [/pawn]

nu imi zice nimica doar ca nu intra in interior

6 answers to this question

Recommended Posts

Posted

Inlocuieste

ASTA:    if PlayerToPoint(5,playerid,836.9717,-2048.9272,13.1674)

CU ASTA:  if(IsPlayerInRangeOfPoint(playerid, 2.0, 836.9717,-2048.9272,13.1674))

Si Merge.

560x95_FFFFFF_FF9900_000000_000000.png
Posted

scz de 2xpost. da iara nu merge :|

    if(strcmp(cmdtext, "/enter", true) == 0)

    {

  {

if(IsPlayerInRangeOfPoint(playerid, 2.0, 836.9717,-2048.9272,13.1674))

{

  SetPlayerPos(playerid,963.418762,2108.292480,1011.030273);

  SetPlayerInterior(playerid,1);

  SendClientMessage(playerid,COLOR_RED,"*** Welcome to the Drugs Shop  !");

  return 1;

}

}

}

asta e comanda

Posted

if(strcmp(cmdtext, "/enter", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 836.9717,-2048.9272,13.1674))
    {
        SetPlayerPos(playerid,963.418762,2108.292480,1011.030273);
        SetPlayerInterior(playerid,1);
        SendClientMessage(playerid,COLOR_RED,"*** Welcome to the Drugs Shop  !");
    }
    return 1;
}

Incearca asta...

Posted

uite un exemplu:

[pawn] if(strcmp(cmd, "/enter", true) == 0)

{

      if(IsPlayerConnected(playerid))

      {

  if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))

                {

                        GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);

          SetPlayerInterior(playerid,7);

          PlayerInfo[playerid][pInt] = 7;

          SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);

  }

                    }

                    return 1;

}[/pawn]

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.