Resurse CS,Jocuri Online Si Multe Altele


Share | 
 

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

View previous topic View next topic Go down 
AuthorMessage
xPlode
Admin Forum
Admin Forum


Posts : 265
Join date : 26/08/2011
Age : 19

PostSubject: [ 0.3c ] Cum faci sa apara stele la wanted.   Sun Sep 04, 2011 5:58 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);
Back to top Go down
View user profile http://csresurse.4rumer.ro
 
[ 0.3c ] Cum faci sa apara stele la wanted.
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Resurse CS,Jocuri Online Si Multe Altele :: Alte Jocuri :: San Andreas / SAMP :: TUTORIALE San Andreas / SAMP-
Jump to: