Jump to content
  • 0

2 Intrebari Simple


VenoM

Question

Sall am si eu 2 intrebari si in acelasi timp probleme

1.Am facut un GM de War gen Call of Duty  si nu imi da scor dupa kill , am pus GetPlayerScore(killerid)+1); dupa OnPlayerDeath etc....si nimik :| ? Vreo solutie ? (am si server de stunt si am facut la fel si a mers aici probabil ca am uitat/gresit ceva )

public OnPlayerDeath(playerid, killerid, reason)
{
	if(PlayerDied[playerid] == true)
	{
	PlayerDied[playerid] = false;
 	if(KillerID[playerid] != INVALID_PLAYER_ID)
 	SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    ResetPlayerWeapons(playerid);
	TogglePlayerSpectating(playerid,1);
	SendDeathMessage(killerid,playerid,reason);
	SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
    GivePlayerMoney(killerid, 1000);
    GivePlayerMoney(playerid, -1000);
	PlayerSpectatePlayer(playerid,killerid);
	SetTimerEx("spawn",10000,1, "i", playerid);
 	}
	else
	{
	TogglePlayerSpectating(playerid, 0);
	}
	    new string[256];

2.Iar a doua intrebare este : cum fac sa imi apara chestia care se activeaza/dezactiveaza pe F9 ( kill ) , stiu ca trebuie ceva cu Status dupa OnPlayerConnect dar nu stiu ce :| !

Sper ca am fost explicit si ati inteles , ms ! :D

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

La 1 totul pare in regula...

La 2, la aia unde apare cine a murit, sa apara si cine s-a conectat/deconectat ?:

La OnPlayerConnect pui:

SendDeathMessage(INVALID_PLAYER_ID,playerid,ICON_CONNECT);
si la OnPlayerDisconnect pui:
SendDeathMessage(INVALID_PLAYER_ID,playerid,ICON_DISCONNECT);

Ar trebui sa mearga :D

*SendDeathMessage

Link to comment
Share on other sites

Deci nu vreau ....ce ai zis mai sus , eu vreau chestia cu killurile din dreapta  de ex : daca eu te omor pe tine cu ak47 apare VenoM [imaginea cu ak47] Stuntman (sau cu ce nume joci...) cred ca m-ai inteles.... :-[

Edit : Am incercat si ce ai scris mai jos si nu merge , nu pot sa imi explic ce are :| ....

Link to comment
Share on other sites

Deci nu vreau ....ce ai zis mai sus , eu vreau chestia cu killurile din dreapta  de ex : daca eu te omor pe tine cu ak47 apare VenoM [imaginea cu ak47] Stuntman (sau cu ce nume joci...) cred ca m-ai inteles.... :-[

asta:

SendDeathMessage(killerid, playerid, reason);
si la prima incearca sa pui la onplayerdeath:
SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);

mie asta imi merge...

OFF-TOPIC: Joc cu [sRC]stuntman ;D

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.