Jump to content
  • 0

Problema Gamemode Ainox


extazy1234

Question

Salut am si eu o problema la gamemodeul Bigzone by Ainox adica atunci cand ma duc la DMV scrie /exam spune sa dau stopanim dupa ce dau stopanim dau exam si tot aia spune!

Ma puteti ajuta?

Mai extact asa arata:

CMD:exam(playerid, params[])
{
    
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command when you are in a car.");
    if(PlayerToPoint(5.0,playerid, 1219.0502,-1812.7823,16.5938))
    {
        new string[256];
        if(PlayerInfo[playerid][pCarLic] == 0)
         {
            if(PlayerInfo[playerid][pCarLicSuspend] > 0)
            {
                format(string,sizeof(string),"Permisul tau de conducere a fost suspendat recent. Poti da examenul peste %d ore.",PlayerInfo[playerid][pCarLicSuspend]);
                SendClientMessage(playerid, COLOR_GREY, string);
                return 1;
            }
            if(GetPlayerWeapon(playerid) == 46)return SCM(playerid, -1, "{ccff99}Nu poti da examenul daca deti o parasuta !");
            if(GetPlayerAnimationIndex(playerid) != 0)return SCM(playerid, -1, "{ccff99}Foloseste mai intai /stopanim !");
              if(TakingLesson[playerid] == 0)
            {
                TakingLesson[playerid] = 1;
                   examcar[playerid] = AddStaticVehicle(410, 1214.6104,-1827.9747,13.1357,180.1865,-1,-1);
                Gas[examcar[playerid]] = 100;
                PutPlayerInVehicleEx(playerid, examcar[playerid], 0);
                DisableRemoteVehicleCollisions(playerid, 1);
                SendClientMessage(playerid, COLOR_WHITE, "Examenul a inceput. Mergi la checkpoint.");
                SendClientMessage(playerid, COLOR_WHITE, "Scrie /engine sau apasa tasta 2 pentru a porni motorul masinii.");
                CP[playerid] = 100;
                PlayerTextDrawShow(playerid, DMVexam[playerid]);
                format(string, sizeof(string), "~w~CHECKPOINTS: ~r~0~w~/~r~24");
                PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
                PlayerTextDrawShow(playerid, DMVcheck[playerid]);
                SetPlayerRaceCheckpoint(playerid,0, 1135.3868,-1850.5981,13.0366,1045.2626,-1809.4169,13.2637,4.0);
            }
               else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have test.");
          }
           else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have a drivers license.");
    }
       else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You are not at the DMV.");
    return 1;

Edited by extazy1234
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Acum 9 ore, extazy1234 a spus:

Salut am si eu o problema la gamemodeul Bigzone by Ainox adica atunci cand ma duc la DMV scrie /exam spune sa dau stopanim dupa ce dau stopanim dau exam si tot aia spune!

Ma puteti ajuta?

Mai extact asa arata:

CMD:exam(playerid, params[])
{
    
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command when you are in a car.");
    if(PlayerToPoint(5.0,playerid, 1219.0502,-1812.7823,16.5938))
    {
        new string[256];
        if(PlayerInfo[playerid][pCarLic] == 0)
         {
            if(PlayerInfo[playerid][pCarLicSuspend] > 0)
            {
                format(string,sizeof(string),"Permisul tau de conducere a fost suspendat recent. Poti da examenul peste %d ore.",PlayerInfo[playerid][pCarLicSuspend]);
                SendClientMessage(playerid, COLOR_GREY, string);
                return 1;
            }
            if(GetPlayerWeapon(playerid) == 46)return SCM(playerid, -1, "{ccff99}Nu poti da examenul daca deti o parasuta !");
            if(GetPlayerAnimationIndex(playerid) != 0)return SCM(playerid, -1, "{ccff99}Foloseste mai intai /stopanim !");
              if(TakingLesson[playerid] == 0)
            {
                TakingLesson[playerid] = 1;
                   examcar[playerid] = AddStaticVehicle(410, 1214.6104,-1827.9747,13.1357,180.1865,-1,-1);
                Gas[examcar[playerid]] = 100;
                PutPlayerInVehicleEx(playerid, examcar[playerid], 0);
                DisableRemoteVehicleCollisions(playerid, 1);
                SendClientMessage(playerid, COLOR_WHITE, "Examenul a inceput. Mergi la checkpoint.");
                SendClientMessage(playerid, COLOR_WHITE, "Scrie /engine sau apasa tasta 2 pentru a porni motorul masinii.");
                CP[playerid] = 100;
                PlayerTextDrawShow(playerid, DMVexam[playerid]);
                format(string, sizeof(string), "~w~CHECKPOINTS: ~r~0~w~/~r~24");
                PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
                PlayerTextDrawShow(playerid, DMVcheck[playerid]);
                SetPlayerRaceCheckpoint(playerid,0, 1135.3868,-1850.5981,13.0366,1045.2626,-1809.4169,13.2637,4.0);
            }
               else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have test.");
          }
           else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have a drivers license.");
    }
       else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You are not at the DMV.");
    return 1;

incearca asa 

CMD:exam(playerid, params[])
{
    
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command when you are in a car.");
    if(PlayerToPoint(5.0,playerid, 1219.0502,-1812.7823,16.5938))
    {
        new string[256];
        if(PlayerInfo[playerid][pCarLic] == 0)
        {
            if(PlayerInfo[playerid][pCarLicSuspend] > 0)
            {
                format(string,sizeof(string),"Permisul tau de conducere a fost suspendat recent. Poti da examenul peste %d ore.",PlayerInfo[playerid][pCarLicSuspend]);
                SendClientMessage(playerid, COLOR_GREY, string);
                return 1;
            }
            if(GetPlayerWeapon(playerid) == 46)return SCM(playerid, -1, "{ccff99}Nu poti da examenul daca deti o parasuta !");
            if(GetPlayerAnimationIndex(playerid) != 0)return SCM(playerid, -1, "{ccff99}Foloseste mai intai /stopanim !");
            if(TakingLesson[playerid] == 0)
            {
                TakingLesson[playerid] = 1;
                examcar[playerid] = AddStaticVehicle(410, 1214.6104,-1827.9747,13.1357,180.1865,-1,-1);
                Gas[examcar[playerid]] = 100;
                PutPlayerInVehicleEx(playerid, examcar[playerid], 0);
                DisableRemoteVehicleCollisions(playerid, 1);
                SendClientMessage(playerid, COLOR_WHITE, "Examenul a inceput. Mergi la checkpoint.");
                SendClientMessage(playerid, COLOR_WHITE, "Scrie /engine sau apasa tasta 2 pentru a porni motorul masinii.");
                CP[playerid] = 100;
                PlayerTextDrawShow(playerid, DMVexam[playerid]);
                format(string, sizeof(string), "~w~CHECKPOINTS: ~r~0~w~/~r~24");
                PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
                PlayerTextDrawShow(playerid, DMVcheck[playerid]);
                SetPlayerRaceCheckpoint(playerid,0, 1135.3868,-1850.5981,13.0366,1045.2626,-1809.4169,13.2637,4.0);
            }
            else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have test.");
        }
        else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You already have a drivers license.");
    }
    else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}You are not at the DMV.");
    return 1;
}
    

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0

problema se rezolva cum a spus

21 hours ago, KnowN said:

Sterge 

if(GetPlayerAnimationIndex(playerid) != 0)return SCM(playerid, -1, "{ccff99}Foloseste mai intai /stopanim !");

T/C

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.