Jump to content
  • 0

salut am si io o problema


laury

Question

aceasta este o comanda ca sa deschida o poarta la iacuza

public OnPlayerCommandText(playerid, cmdtext[])

{

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

    {

MoveObject(parkgate, 1082.390381, -1208.368896, 14.070005, 5);

        SetTimerEx("parcare", 5 * 1000, 0, "i", playerid);

        return 1;

    }

    return 0;

}

eu vreau ca sa deschida  poarta doar membri din yakuza

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Incearca asta

public OnPlayerCommandText(playerid, cmdtext[])
{
    if( strcmp(cmdtext, "/yakuza", true)==0)
    {

      if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
      MoveObject(parkgate, 1082.390381, -1208.368896, 14.070005, 5);
      SetTimerEx("parcare", 5 * 1000, 0, "i", playerid);
      SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of Yakuza");
        return 1;
    }
    return 0;
}

si la linia if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)

Schimbi in loc de [pMember] == 6 si [pLeader] == 6  pui id-ul factiuni ( ca nush sigur daca e 6 )

Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

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.