[Pomoc] /equip

Započeo Chuck:), Jul 15, 2011, 20:15:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Street Stories
Detaljan opis problema: Kako napraviti /equip u dialogu
Dio skripte: Dolje:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


Eto /equip i kako da napravim da bude u dialogu :S



if(strcmp(cmd, "/equip", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerToPoint(100, playerid, 244.9618,-1348.2435,107.1833))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristite: /equip [item number]");
SendClientMessage(playerid, COLOR_BLUE, "|_______ LSPD Police Armory _______|");
SendClientMessage(playerid, COLOR_GRAD1, "| 1: Cadet Patrol 2: Officer Patrol");
SendClientMessage(playerid, COLOR_GRAD2, "| 3: Detective Patrol 4: Motorcyclist Patrol");
SendClientMessage(playerid, COLOR_GRAD3, "| 5: Standard SWAT 6: Medium SWAT");
SendClientMessage(playerid, COLOR_GRAD4, "| 7: Heavy SWAT 8: Sharpshooter SWAT");
SendClientMessage(playerid, COLOR_GRAD5, "| 9: Equip Armor+health      10: Ceremonial Uniform");
SendClientMessage(playerid, COLOR_GRAD5, "| 11: Default ((UPOZORENJE: Ovo vas ubije))");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 400);
SafeGivePlayerWeapon(playerid, 41, 999);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s se opremio sa standardnom cadet opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    }
else if (item == 2)
{
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 29, 600);
SafeGivePlayerWeapon(playerid, 24, 400);
SafeGivePlayerWeapon(playerid, 41, 999);
SafeGivePlayerWeapon(playerid, 25, 50);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s se opremio sa standarnom oficirskom opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 3)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeResetPlayerWeapons(playerid);
    SendClientMessage(playerid, COLOR_WHITE, "Koristitete kameru da zumirate i f8 da slikate");
    SafeGivePlayerWeapon(playerid, 43, 1);
    SafeGivePlayerWeapon(playerid, 24, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "* %s je uzeo instrumenta koja su mu potrebna da bi postao detektiv.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 4)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 400);
SafeGivePlayerWeapon(playerid, 41, 999);
SetPlayerSkin(playerid, 284);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je stavio na sebe zastitnu opremu za motor i krenuo u patrolu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 5)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 17, 5);
    SafeGivePlayerWeapon(playerid, 29, 600);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao SWAT uniformu i zastitnu opremu i krenuo u patrolu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 6)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 17, 5);
    SafeGivePlayerWeapon(playerid, 31, 600);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao SWAT uniformu i stavio na sebe zastitnu opremu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 7)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 16, 5);
    SafeGivePlayerWeapon(playerid, 27, 100);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao SWAT uniformu i stavio na sebe tesku opremu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 8)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 23, 400);
    SafeGivePlayerWeapon(playerid, 34, 50);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao SWAT uniformu i stavio na sebe sharpshooter opremu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 9)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
    {
SetPlayerArmour(playerid, 100);
                    SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je stavio na sebe pancir od Kevlara i pojeo koju krofnu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
}
else if (item == 10)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pRank] < 4)
{
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 23, 400);
    SafeGivePlayerWeapon(playerid, 33, 50);
SetPlayerSkin(playerid, 288);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao svecanu uniformu i opremu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pRank] > 3)
{
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 23, 400);
    SafeGivePlayerWeapon(playerid, 33, 50);
    SetPlayerSkin(playerid, 283);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao svecanu uniformu i opremu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 11)
{
    new originalskin = PlayerInfo[playerid][pModel];
SetPlayerSkin(playerid, originalskin);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "   Nemate novca za to!");
return 1;
}
}
if(PlayerToPoint(100, playerid, 222.6434,115.1870,999.0156))
        {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristite: /equip [item number]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ LSPD Police Armory _______|");
SendClientMessage(playerid, COLOR_GRAD1, "| 1: Intern Surveillance  2: Agent Surveillance");
SendClientMessage(playerid, COLOR_GRAD2, "| 3: Surveillance Camera  4: Covert Surveillance");
SendClientMessage(playerid, COLOR_GRAD3, "| 5: Standard Tactical    6: Medium Tactical");
SendClientMessage(playerid, COLOR_GRAD4, "| 7: Heavy Tactical     8: Sharpshooter Tactical");
SendClientMessage(playerid, COLOR_GRAD5, "| 9: Equip Armor+health   10: Night Vision Goggles");
SendClientMessage(playerid, COLOR_GRAD5, "| 11: Thermal Goggles     12: Default");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 43, 100);
SafeGivePlayerWeapon(playerid, 3, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s se opremio sa standardnom internom opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    }
else if (item == 2)
{
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
        SafeGivePlayerWeapon(playerid, 43, 100);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 3, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s se opremio sa standardnom agent opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 3)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 43, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "* %s je uzeo instrumente i krenuo na posao detektiva.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 4)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 43, 100);
    SafeGivePlayerWeapon(playerid, 4, 1);
    SafeGivePlayerWeapon(playerid, 23, 100);
    SafeGivePlayerWeapon(playerid, 46, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je uzeo neophodne instrumente za prikrivene operacije.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 5)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 17, 5);
    SafeGivePlayerWeapon(playerid, 29, 600);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je uzeo takticku opremu i opremio se sa standardnom opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 6)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 17, 5);
    SafeGivePlayerWeapon(playerid, 31, 600);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa srednjom opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 7)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
        SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 24, 400);
    SafeGivePlayerWeapon(playerid, 41, 999);
    SafeGivePlayerWeapon(playerid, 16, 5);
    SafeGivePlayerWeapon(playerid, 27, 100);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa teskom opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 8)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 3, 1);
    SafeGivePlayerWeapon(playerid, 23, 400);
    SafeGivePlayerWeapon(playerid, 34, 50);
    SafeGivePlayerWeapon(playerid, 46, 1);
SetPlayerSkin(playerid, 285);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa sharpshooter opremom.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 9)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerArmour(playerid, 100);
                SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je stavio na sebe pancir od Kevlara i pojeo nekoliko krofni.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
}
else if (item == 10)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeGivePlayerWeapon(playerid, 44, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s se opremio sa dvogledom za nocno osmatranje.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 11)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
    SafeGivePlayerWeapon(playerid, 45, 1);
        format(string, sizeof(string), "* %s se opremio sa dvogledom za toplotno osmatranje.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if (item == 12)
{
    new originalskin = PlayerInfo[playerid][pChar];
SetPlayerSkin(playerid, originalskin);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "   Nemate novca za to!");
return 1;
}
}
return 1;
}
}


Hvala i LP

Å to bi ta komanda trebala predstavljat??

tako da pogledas tutoriale, ima ih puno
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: System32 poslato Jul 15, 2011, 20:23:17 POSLE PODNE
tako da pogledas tutoriale, ima ih puno

Samo ti skupljaj postove tu. Ja sam pitao kako i ako mi ne zelis pomoci mozes od*ebat od teme,hvala :)

@Dane, to ti je /oprema, kad neki PD /FBI ide uzeti opremu da mu u dialogu dode vrsta opreme i on stisne na to i dobije opremu (dialog :D)
Poslednja Izmena: Jul 15, 2011, 20:33:04 POSLE PODNE od pHon

Imas tri miliona takvih tema i sigurno da ti niko nece pomoci,pogotovo sa takvim tvojim ponasanjem -_-

Imas u tutorijalima bas za ovo.
Samo malo trazi.

Ok ok. Napravio sam,moze lock.