[Pomoc] /duty

Započeo NeÓ§, Februar 19, 2012, 10:13:06 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FG
Detaljan opis problema:Kako bi mogao da stavim kad je policajac na duznosti da se vidi na mapi plava tacka
Dio skripte: if(strcmp(cmd, "/duty", true) == 0 || strcmp(cmd, "/duznost", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
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))
{
if(OnDuty[playerid]==0)
        {
            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
            {
    format(string, sizeof(string), "* Policajac %s je uzeo znacku i pistolj iz ormarica.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
            {
    format(string, sizeof(string), "* Agent %s je uzeo znacku i pistolj iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 70);
SafeGivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
format(string, sizeof(string), "* Policajac %s stavlja znacku i pistolj u svoj ormaric.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
    format(string, sizeof(string), "* Agent %s stavlja znacku i pistolj u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SafeGivePlayerWeapon(playerid, 41, 500);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   Niste u prostoriji sa ormaricima !");
return 1;
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Februar 19, 2012, 10:49:34 PRE PODNE od [DMZ] Zeratul