Jump to content

O mica problema


Sebi wepos

Recommended Posts

Deci te duci in publicul OnPlayerKeyStateChange si acolo o sa gasesti tot ce iti trebuie tie.

[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to comment
Share on other sites

    

    if(IsACopCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(newcar == Copcar[6] || newcar == Copcar[7] || newcar == Copcar[18])
        {
            if(IsACop(playerid))
            {
                if(PlayerInfo[playerid][pRank] < 3)
                {
                    ClearAnimations(playerid);
                    SendClientMessage(playerid,COLOR_WHITE,"You don't have rank 3.");
                }
            }
        }
        if(IsAFbiCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(IsALVPDCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(IsANgCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        else if(IsAnAmbulance(newcar))
        {
            if(PlayerInfo[playerid][pMember] == 14) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Paramedic.");}
        }

am scos          "   else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.") " dar daca dai f la un cop in masina te lasa sa intri, la fel si la g , dar vreau sa nu mearga sa dai f, sper sa intelegi

Link to comment
Share on other sites

if(newstate == PLAYER_STATE_DRIVER)
{
	if(IsAFbiCar(newcar) && !IsACop(playerid))
		return ClearAnimations(playerid),SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.");
}

 

Link to comment
Share on other sites

if(newstate == PLAYER_STATE_DRIVER)
{
	if(IsAFbiCar(newcar) && !IsACop(playerid))
	{
		ClearAnimations(playerid);SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.");
		return 1;
	}
}

....

Link to comment
Share on other sites

gen daca am asa:

      if(IsAFbiCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }

pun asa?

 

if(newstate == PLAYER_STATE_DRIVER)
{
	if(IsAFbiCar(newcar) && !IsACop(playerid))
	{
		ClearAnimations(playerid);SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.");
		return 1;
	}
}

 

Link to comment
Share on other sites

Da , dar nu stiu sigur daca merge cu newstate pentru ca o sa fie deja in masina ... deci sa fi mai sigur pune la OnPlayerEnterVehicle si sigur o sa functioneze bine.

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(IsAFbiCar(vehicleid) && ispassenger && !IsACop(playerid)) {ClearAnimations(playerid);SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.");}
	return 1;
}

Jucatorul o sa poata intra in masina doar ca pasager , poti sa faci pentru restu dupa acest model. :)

Succes. 

Link to comment
Share on other sites

La 13.05.2019 la 10:48, Sebi wepos a spus:

    

    if(IsACopCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(newcar == Copcar[6] || newcar == Copcar[7] || newcar == Copcar[18])
        {
            if(IsACop(playerid))
            {
                if(PlayerInfo[playerid][pRank] < 3)
                {
                    ClearAnimations(playerid);
                    SendClientMessage(playerid,COLOR_WHITE,"You don't have rank 3.");
                }
            }
        }
        if(IsAFbiCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(IsALVPDCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        if(IsANgCar(newcar))
        {
            if(IsACop(playerid)) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop."); }
        }
        else if(IsAnAmbulance(newcar))
        {
            if(PlayerInfo[playerid][pMember] == 14) { }
            else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Paramedic.");}
        }

am scos          "   else { ClearAnimations(playerid); SendClientMessage(playerid,COLOR_WHITE,"You are not a Cop.") " dar daca dai f la un cop in masina te lasa sa intri, la fel si la g , dar vreau sa nu mearga sa dai f, sper sa intelegi

Vorbind de tot ce ai trimis tu aici,nimic nu raspunde de apasarea butonului F ca exemplu pentru un anumit scop.

- Deschide bara de cautare si introdu acest cod if(newkeys == 
- Dupa ce ai introdus o sa te trimita in locul unde sunt toate aceste combinatii ce au la baza de a indeplini o functie, si cauta codul literei care iti trebuie, codurile acestor litere le poti gasi aici Click
- Ca exemplu litera Y are acest cod if(newkeys ==  1024)

Edited by </Khain>
[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.