Jump to content
  • 0

Ajutor...


alexutu

Question

5 answers to this question

Recommended Posts

1.Adaugi la OnPlayerStateChange

[Pawn]if(newstate == PLAYER_STATE_PASENGER  || newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver { playaudio....... }

2.  La OnPlayerSpawn pui o coordonate noi.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

La prob 1 o erroare

[pawn]C:\Users\ghuest\Desktop\ForTeam Romania\gamemodes\ftrp.pwn(11662) : error 017: undefined symbol "PLAYER_STATE_PASENGER"[/pawn]

si unde pun adresea radio

[pawn] if(newstate == PLAYER_STATE_PASENGER  || newstate == PLAYER_STATE_DRIVER) //Player entered a vehicle as a driver { playaudio....... }[/pawn]

Inca o prob cum fac ca si helperi sa vad reportul?

comanda  [pawn] if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

            if(PlayerReported[playerid] == -1)//report timer

            {

              SendClientMessage(playerid,COLOR_RED,"Poti da /report doar o data pe minut !");

            }

            else if(PlayerReported[playerid] == 0)

            {

        GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[130];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, 0x0080FFFF, "USAGE: /report [text]");

return 1;

}

format(string, sizeof(string), "[REPORT] de la player %s(ID:%d): %s", sendername,playerid, (result));

ABroadCast(0xE19898AA,string,1);

SendClientMessage(playerid, 0xFF80FFFF,"[REPORT INFO]: ~~|Reportul tau a fost trimis Adminilor. Ei se vor uita si iti vor raspunde|~~");

SetTimerEx("ResetReport", 60000, 0, "d", playerid);

    PlayerReported[playerid] = -1;

    CallReport[playerid] = 1;

    for(new i = 0; i < MAX_PLAYERS; i ++)

{

    if(PlayerInfo[pAdmin] >= 1 || PlayerInfo[pHelper] >= 1)

    {

        format(string, sizeof(string), "~r~REPORT:%s",sendername);

        GameTextForPlayer(i,string,3000,3);

    }

    }

    }

    }

    return 1;

}[/pawn]

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Link to comment
Share on other sites

Ma tu vrei ajutor daca nici nu stie unde trebuie pusa o functie?

if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) //Player entered a vehicle as a driver { PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");}

Iar la cea cu reportul trebuie sa faci o alta functei care sa transmita si adminilor si helperilor raportul

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

La prob 1 o erroare

[pawn]C:\Users\ghuest\Desktop\ForTeam Romania\gamemodes\ftrp.pwn(11662) : error 017: undefined symbol "PLAYER_STATE_PASENGER"[/pawn]

si unde pun adresea radio

[pawn] if(newstate == PLAYER_STATE_PASENGER  || newstate == PLAYER_STATE_DRIVER) //Player entered a vehicle as a driver { playaudio....... }[/pawn]

Inca o prob cum fac ca si helperi sa vad reportul?

comanda  [pawn] if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

            if(PlayerReported[playerid] == -1)//report timer

            {

              SendClientMessage(playerid,COLOR_RED,"Poti da /report doar o data pe minut !");

            }

            else if(PlayerReported[playerid] == 0)

            {

        GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[130];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, 0x0080FFFF, "USAGE: /report [text]");

return 1;

}

format(string, sizeof(string), "[REPORT] de la player %s(ID:%d): %s", sendername,playerid, (result));

ABroadCast(0xE19898AA,string,1);

SendClientMessage(playerid, 0xFF80FFFF,"[REPORT INFO]: ~~|Reportul tau a fost trimis Adminilor. Ei se vor uita si iti vor raspunde|~~");

SetTimerEx("ResetReport", 60000, 0, "d", playerid);

    PlayerReported[playerid] = -1;

    CallReport[playerid] = 1;

    for(new i = 0; i < MAX_PLAYERS; i ++)

{

    if(PlayerInfo[pAdmin] >= 1 || PlayerInfo[pHelper] >= 1)

    {

        format(string, sizeof(string), "~r~REPORT:%s",sendername);

        GameTextForPlayer(i,string,3000,3);

    }

    }

    }

    }

    return 1;

}[/pawn]

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

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.