Dark-Strike
Vrei să reacționezi la acest mesaj? Creați un cont în câteva clicuri sau conectați-vă pentru a continua.

Dark-Strike


 
AcasaCăutareÎnregistrareConectare

 

 [ 0.3c ] Cum faci sa apara stele la wanted.

In jos 
AutorMesaj
ciocio
Fondatori
Fondatori


Mesaje : 956
Puncte : 13705
Data de inscriere : 07/01/2011

[ 0.3c ] Cum faci sa apara stele la wanted. Empty
MesajSubiect: [ 0.3c ] Cum faci sa apara stele la wanted.   [ 0.3c ] Cum faci sa apara stele la wanted. Icon_minitimeMier Aug 03, 2011 9:25 am

Am vazut ca multi playeri cauta cum sa faca sa apara stele la fiecare wanted primit.
Urmati acest tutorial...

La inceput puneti "new stars;" intre celalalte

Cauta "OnPlayerEnterVehicle" si pui sub asta:

if(gTeam[playerid] >= 3)
{
new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
Apoi cauti:
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
return 1;
}
si pui asta deasupra la SetPlayerInterior(playerid, 6);
SetPlayerWantedLevel(playerid, 0);
Cauta asta:
if(count == 1)
{
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pWantedDeaths] += 1;
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);
format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
}
}
}
Sub asta PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);
pui asta:
SetPlayerWantedLevel(playerid, 0);
Apoi cauti linia asta:
format(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). Reporter: %s.",reason,turner);
Si pui asta sub SendClientMessage
new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
Apoi daca vrei sa faci cand copul da clear sa dispara stelele, Cauti comanda /clear mergi putin mai jos si gasesti Officer %s has cleared .... Sub SendClientMessage pui asta:
SetPlayerWantedLevel(giveplayerid, 0);
Cauti asta:
SetPlayerInterior(suspect, 6);
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
PlayerInfo[suspect][pJailTime] = time * 60;
if(bail == 1)
{
Deasupra lui SetPlayerInterior(suspect, 6); pui asta:
SetPlayerWantedLevel(giveplayerid, 0);
Sus In jos
https://dark-strike.hitforum.ro
 
[ 0.3c ] Cum faci sa apara stele la wanted.
Sus 
Pagina 1 din 1
 Subiecte similare
-
» [Tutorial] Cum sa faci un sistem de logare/inregistrare!
» Vrei sa faci bani usor? 1 dolar pe zi

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Dark-Strike  :: GameS-Zone :: SAMP-
Mergi direct la: