Jump to content
  • 0

/skip


gabbii

Question

Cum pot face comanda skip doar pentru Premium Account si sa zica cand nai Premium Account sa zica "You do not have premium account!"

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

{

if(IsPlayerConnected(playerid))

{

if(TutTime[playerid] >= 1)

{

  TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;

gNews[playerid] = 0; gFam[playerid] = 0;

TogglePlayerControllable(playerid, 1);

MedicBill[playerid] = 0;

SetPlayerSpawn(playerid);

SetCameraBehindPlayer(playerid);

SetPlayerVirtualWorld(playerid,0);

            SendClientMessage(playerid, COLOR_YELLOW, "|____ Tutorial: Skip ____|");

SendClientMessage(playerid, COLOR_YELLOW2, "Tutorial-ul a fost oprit.");

SendClientMessage(playerid, COLOR_YELLOW2, "Echipa Mortal-zone va ureaza distractie placuta!");

}

  }[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

[pawn]

if (!PlayerInfo[playerid][Premium])

{

    SendClientMessage(playerid, -1, "You don't have a premium account!");

}

[/pawn]

Nu stiu cum sunt variabilele la tine, dar cred ca ai inteles cum ar veni.

Link to comment
Share on other sites

if(strcmp(cmd, "/skip", true) == 0)
   {
      if(IsPlayerConnected(playerid))
      {
      if(PlayerInfo[playerid][pDonater] == 1)
    {
         if(TutTime[playerid] >= 1)
         {
            TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
            gNews[playerid] = 0; gFam[playerid] = 0;
            TogglePlayerControllable(playerid, 1);
            MedicBill[playerid] = 0;
            SetPlayerSpawn(playerid);
            SetCameraBehindPlayer(playerid);
            SetPlayerVirtualWorld(playerid,0);
            SendClientMessage(playerid, COLOR_YELLOW, "|____ Tutorial: Skip ____|");
            SendClientMessage(playerid, COLOR_YELLOW2, "Tutorial-ul a fost oprit.");
            SendClientMessage(playerid, COLOR_YELLOW2, "Echipa Mortal-zone va ureaza distractie placuta!");
         }
      }
}

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.