Skripta koju koristim: Moja samsung gaming
Detaljan opis problema: Treba mi komanda / scripta da POLICIJI cobri 11 i FBI ime bude plavo a igracima sa wl CRVENO i da mi date ono da uzmesto /ta bude SD Pistolj sa beskonacno municije!
Dio skripte: Treba mi komanda / scripta da POLICIJI cobri 11 i FBI ime bude plavo a igracima sa wl CRVENO i da mi date ono da uzmesto /ta bude SD Pistolj sa beskonacno municije!
Neke slike/video za lakse dobivanje pomoci(neobavezno): Treba mi komanda / scripta da POLICIJI cobri 11 i FBI ime bude plavo a igracima sa wl CRVENO i da mi date ono da uzmesto /ta bude SD Pistolj sa beskonacno municije!
[POMOC] Nick i Tazer
371
pregleda
7
postova
14. Sep. 2012.
14. Sep. 2012.
Na komandi od tih organizacija stavi
Za tazer sa SD pištoljem koristi ovaj include. http://forum.sa-mp.com/showthread.php?p=937824
SetPlayerColor(playerid, 0x0000FFC8);a kod gaÅ¡enja dužnosti da stavi igraÄu normalnu boju, neznam kako je kod samsunga boja igraÄa na TABu.Za tazer sa SD piÅ¡toljem koristi ovaj include. http://forum.sa-mp.com/showthread.php?p=937824
14. Sep. 2012.
objasni gde da stavim SetPlayerColor(playerid, 0x0000FFC😎; i kako da ih nadjem pod CTRL + F
14. Sep. 2012.
aduty
duty
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(!strcmp(cmdtext, "/aon", true) || !strcmp(cmdtext, "/aduty", true)) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se prvo prijaviti !");
return 1;
}
if(PlayerInfo > 0)
{
if(AdminDuty == 0)
{
AdminDuty = 1;
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,COLOR_YELLOW);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s je sada na duznosti.", sendername);
ABroadCast(COLOR_YELLOW,string,1);
DutyLabel = Create3DTextLabel("{1B8EE0}Admin na Duznosti!\n Ne ometaj!",0xFFFF00AA,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel, playerid, 0,0,0.6);
return 1;
}
else if(AdminDuty == 1)
{
Delete3DTextLabel(DutyLabel);
AdminDuty = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s vise nije na duznosti.", sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Admin !");
return 1;
}
}
return 1;
}duty
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/duty", true) == 0 || strcmp(cmd, "/duznost", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo == 1 || PlayerInfo == 1 || PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo == 3 || PlayerInfo == 3)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,254.4334,190.6243,1008.1718) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3,playerid,236.9237,111.3875,1003.2187) || PlayerToPoint(3,playerid,1527.9905,-1460.4541,999.0073))
{
if(OnDuty==0)
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
format(string, sizeof(string), "{0084e3}* Policajac {FFFFFF}%s {0084e3}je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo == 2 || PlayerInfo == 2)
{
format(string, sizeof(string), "{0049FF}* Agent {FFFFFF}%s {0049FF}je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo == 3 || PlayerInfo == 3)
{
format(string, sizeof(string), "{0049FF}* COBRA 11 {FFFFFF}%s {0049FF}je uzeo znacku i pistolj iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeJBC_GivePlayerWeapon(playerid, 24, 70);
SafeJBC_GivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
//SetPlayerColor(playerid,0x0000ff00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
format(string, sizeof(string), "{0084e3}* Policajac {FFFFFF}%s {0084e3}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo == 2 || PlayerInfo == 2)
{
format(string, sizeof(string), "{0049FF}* Agent {FFFFFF}%s {0049FF}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo == 3 || PlayerInfo == 3)
{
format(string, sizeof(string), "{0049FF}* COBRA 11 {FFFFFF}%s {0049FF}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeJBC_ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
else if(PlayerInfo == 4||PlayerInfo == 4)
{
if (PlayerToPoint(3, playerid,1177.4841,-1323.1500,-18.4465))
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati hitne pozive.");
JobDuty = 0;
Medics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada ste na duznosti i primacete pozive od ljudi kojima treba hitna pomoc.");
JobDuty = 1;
Medics += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{ff0000} Bolnicar %s je na duznosti | Tel. /call 911.", sendername);
OOCNews(COLOR_ALLDEPT,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji za uzimanje duznosti !");
return 1;
}
}
else if(PlayerInfo == 17)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati pozive vezane za posao.");
JobDuty = 0;
PizzaBoys -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada ste na duznosti i primacete pozive od ljudi kojima treba pica.");
JobDuty = 1;
PizzaBoys += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), " Raznosac pica %s je na duznosti, /call 111 da narucite picu.", sendername);
OOCNews(0xFF7E00AA,string);
}
}
else if(PlayerInfo == 7)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati pozive vezane za posao.");
JobDuty = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{0084e3}* Sada ste na duznosti i primacete pozive od ljudi kojima treba mehanicar.");
JobDuty = 1;
Mechanics += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{0084e3} Automehanicar {FFFFFF}%s {0084e3}je na duznosti, {FFFFFF}/call 555 {0084e3}da pozovete mehanicara.", sendername);
OOCNews(0x2993EDAA,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste policajac!");
}
}
return 1;
}14. Sep. 2012.
Eto duty komanda.
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/duty", true) == 0 || strcmp(cmd, "/duznost", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo == 1 || PlayerInfo == 1 || PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo == 3 || PlayerInfo == 3)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,254.4334,190.6243,1008.1718) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3,playerid,236.9237,111.3875,1003.2187) || PlayerToPoint(3,playerid,1527.9905,-1460.4541,999.0073))
{
if(OnDuty==0)
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
format(string, sizeof(string), "{0084e3}* Policajac {FFFFFF}%s {0084e3}je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo == 2 || PlayerInfo == 2)
{
format(string, sizeof(string), "{0049FF}* Agent {FFFFFF}%s {0049FF}je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo == 3 || PlayerInfo == 3)
{
format(string, sizeof(string), "{0049FF}* COBRA 11 {FFFFFF}%s {0049FF}je uzeo znacku i pistolj iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeJBC_GivePlayerWeapon(playerid, 24, 70);
SafeJBC_GivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, 0x0000FFC8);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
format(string, sizeof(string), "{0084e3}* Policajac {FFFFFF}%s {0084e3}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo == 2 || PlayerInfo == 2)
{
format(string, sizeof(string), "{0049FF}* Agent {FFFFFF}%s {0049FF}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo == 3 || PlayerInfo == 3)
{
format(string, sizeof(string), "{0049FF}* COBRA 11 {FFFFFF}%s {0049FF}stavlja znacku i pistolj u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeJBC_ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
else if(PlayerInfo == 4||PlayerInfo == 4)
{
if (PlayerToPoint(3, playerid,1177.4841,-1323.1500,-18.4465))
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati hitne pozive.");
JobDuty = 0;
Medics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada ste na duznosti i primacete pozive od ljudi kojima treba hitna pomoc.");
JobDuty = 1;
Medics += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{ff0000} Bolnicar %s je na duznosti | Tel. /call 911.", sendername);
OOCNews(COLOR_ALLDEPT,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji za uzimanje duznosti !");
return 1;
}
}
else if(PlayerInfo == 17)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati pozive vezane za posao.");
JobDuty = 0;
PizzaBoys -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada ste na duznosti i primacete pozive od ljudi kojima treba pica.");
JobDuty = 1;
PizzaBoys += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), " Raznosac pica %s je na duznosti, /call 111 da narucite picu.", sendername);
OOCNews(0xFF7E00AA,string);
}
}
else if(PlayerInfo == 7)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "* Sada niste vise na duznosti i necete primati pozive vezane za posao.");
JobDuty = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{0084e3}* Sada ste na duznosti i primacete pozive od ljudi kojima treba mehanicar.");
JobDuty = 1;
Mechanics += 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{0084e3} Automehanicar {FFFFFF}%s {0084e3}je na duznosti, {FFFFFF}/call 555 {0084e3}da pozovete mehanicara.", sendername);
OOCNews(0x2993EDAA,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste policajac!");
}
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava