Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

2 answers to this question

Recommended Posts

Posted

1.Cum fac cand sunt intro zona de Dm sa nu pot folosi /teles?

2.Cum pun Anti Reclama pe /ad?

1:

sus de tot

[pawn]//DM

new IsInDM[MAX_PLAYERS];[/pawn]

la

[pawn]public OnPlayerConnect(playerid)[/pawn]

pui

[pawn]  IsInDM[playerid] = 0;[/pawn]

la

[pawn]public OnPlayerDisconnect(playerid, reason)[/pawn]

pui

[pawn]  IsInDM[playerid] = 0;[/pawn]

la

[pawn]public OnPlayerSpawn(playerid)[/pawn]

pui

[pawn]  IsInDM[playerid] = 0;[/pawn]

[pawn]public OnPlayerDeath(playerid, killerid, reason)

pui

[pawn]

    if(IsInDM[playerid] ==1)

    {

        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);

        SetPlayerScore(playerid,GetPlayerScore(playerid)-1);

        GivePlayerMoney(killerid, 1800);

        GivePlayerMoney(playerid, -1000);

        return 1;

    }

    if(IsInDM[playerid] ==0)

    {

        SetPlayerScore(killerid,GetPlayerScore(killerid)-1);

        GivePlayerMoney(killerid, -2000);

        return 1;

    }

    IsInDM[playerid] = 0;

    nojump2[playerid] = 0;[/pawn]

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

{

if(IsInDM[playerid] ==1)

    {

    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Daca vrei sa folosesti acceasta comanda tastaza /leavedm");

    return 1;

    }

AICI pui restul comenzi de la teles....

return 1;

}[/pawn]

si unde sunt zonele de dm gen : minigun,war... etc nush ce ai tu prin srv dar ma rog :P

iti dau un ex...

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

        {

        if(IsInDM[playerid] ==1)

restul comenzi......

[/pawn]

PS asa poti sa faci si la restul comenzilor ;)

la 2 nu inteleg ce vrei sa spui....

<a href=http://devilone.ro>

devilone-banner.png</a>

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.