Započeo Nikola GRocezen
•3. Jan. 2013.• Zaključano[Pomoc] WL ipolicija plavo
380
pregleda
9
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
108
Postovi:
26
Teme:
Pridružio se:Jan. 2013
3. Jan. 2013.
Skripta koju koristim: GTARP
Detaljan opis problema: e mozel mi ko napravit ono kao kad je policajac da mu bude ime Plavo a ako ima wanted level da mu bude ime crveno ono red,,hvala unapred
Dio skripte:
evo /su wanted
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 3 || OnDuty == 1 && PlayerInfo == 3) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " {f9e8b7}Niste na duznosti ili niste policajac!!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F3FF02}Koristite: "ZELENA"(/su)spect [playerid/PartOfName] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F3FF02}Koristite: "ZELENA"(/su)spect [playerid/PartOfName] [opis zlocina]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "{f9e8b7}Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), "{f9e8b7} %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " {f9e8b7}Niste Policajac / FBI / Swat !");
}
}
return 1;
}
a za policiju sta trebam dat dacu 😄 hvala unapred
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Detaljan opis problema: e mozel mi ko napravit ono kao kad je policajac da mu bude ime Plavo a ako ima wanted level da mu bude ime crveno ono red,,hvala unapred
Dio skripte:
evo /su wanted
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 3 || OnDuty == 1 && PlayerInfo == 3) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " {f9e8b7}Niste na duznosti ili niste policajac!!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F3FF02}Koristite: "ZELENA"(/su)spect [playerid/PartOfName] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F3FF02}Koristite: "ZELENA"(/su)spect [playerid/PartOfName] [opis zlocina]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "{f9e8b7}Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), "{f9e8b7} %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " {f9e8b7}Niste Policajac / FBI / Swat !");
}
}
return 1;
}
a za policiju sta trebam dat dacu 😄 hvala unapred
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
383
Postovi:
108
Teme:
Pridružio se:Nov. 2012
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
108
Postovi:
26
Teme:
Pridružio se:Jan. 2013
Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
3. Jan. 2013.
stavi na vrh
forward Boja(playerid); i ovo na kraj skripte public Boja(playerid)
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
if (PlayerInfo == 1 || PlayerInfo == 1)
SetPlayerColor(playerid,COLOR_BLUE);
} a ovo stavi pod ongamemodeinit Boja(playerid);Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
108
Postovi:
26
Teme:
Pridružio se:Jan. 2013
3. Jan. 2013.
baca eror kad sam stavio pod ongamemodeLnit Boja(playerid);
(11729) : error 017: undefined symbol "playerid"
(11729) : error 017: undefined symbol "playerid"
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
385
Postovi:
62
Teme:
Pridružio se:Okt. 2012
3. Jan. 2013.
e jel meni mozes napravit kao ono : Setplayercolor kak vec za boju za pd kada je na duty ali amo da na tabu bude duty a ne na radaru i kada pise (tamno plava boja) 😉 i za pljackase i to crvena 😉
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
108
Postovi:
26
Teme:
Pridružio se:Jan. 2013
3. Jan. 2013.
(11729) : error 017: undefined symbol "playerid"
kako da sredim ovaj error
ovde baca
Boja(playerid);
kako da sredim ovaj error
ovde baca
Boja(playerid);
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
108
Postovi:
26
Teme:
Pridružio se:Jan. 2013
4. Jan. 2013.
ovo stavo na pocetak
forward Boja(playerid);
ovo n a kraj
public Boja(playerid)
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
if (PlayerInfo == 1 || PlayerInfo == 1)
SetPlayerColor(playerid,COLOR_BLUE);
}
aovo stavio pod ongamemodelnt pa bacalo eror
Boja(playerid);
ovaj eror bacalo (11729) : error 017: undefined symbol "playerid"
e onda reko david da stavim ovo
pod
onplayerconne
Boja(playerid);
i onda nie bilo eror issad koje pd nije mu plavo ime ja hocu da bude plavo ime koje PD ne na map ne kad pogledas igrace plavo ime
forward Boja(playerid);
ovo n a kraj
public Boja(playerid)
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
if (PlayerInfo == 1 || PlayerInfo == 1)
SetPlayerColor(playerid,COLOR_BLUE);
}
aovo stavio pod ongamemodelnt pa bacalo eror
Boja(playerid);
ovaj eror bacalo (11729) : error 017: undefined symbol "playerid"
e onda reko david da stavim ovo
pod
onplayerconne
Boja(playerid);
i onda nie bilo eror issad koje pd nije mu plavo ime ja hocu da bude plavo ime koje PD ne na map ne kad pogledas igrace plavo ime
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava