Kako skriptati org. molim vas pomozite

Započeo EaglE, April 22, 2010, 09:27:36 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Eo da pocnem ja sam tek poceo sriptat i znam objecte i aute zanima me kako naskriptat organizacije.
Akoo neko moze pomoc zamolio bi ga

Unaprijed HVALA!!! :P


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.

a jbt ti i reza ste isti :S...
cak imate iste simbole u imenu...
koristi search :S...

Citat: ...:::---TOMA-:::... poslato April 22, 2010, 09:27:36 PRE PODNE
Eo da pocnem ja sam tek poceo sriptat i znam objecte i aute zanima me kako naskriptat organizacije.
Akoo neko moze pomoc zamolio bi ga

Unaprijed HVALA!!! :P

evo ti neke od mojih 1 samo nedam vise xD

if(PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
   SetPlayerToTeamColor(playerid);
   SetPlayerInterior(playerid, 3);
   SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
   PlayerInfo[playerid][pInt] = 3;
   PlayerInfo[playerid][pLocal] = 241;
   return 1;
}

To ti je spawn

else if(PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
   if(PlayerInfo[targetid][pRank] == 1) { rtext = "Mayor's driver"; }
   else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mayor's bodyguard"; }
   else if(PlayerInfo[targetid][pLeader] == 7) { rtext = "Mayor"; }
   else { rtext = "None"; }
}

Mayor rankovi

AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15

auta za majora
   if(strcmp(cmd,"/govinvite",true)==0) // -
   {
if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "Moras se logirati! ");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
   tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /govinvite [Id Igraca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PlayerInfo[giveplayerid][pMember] != 0)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec clan organizacije ! ");
           return 1;
       }
       if(PlayerInfo[giveplayerid][pLeader] != 0)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec clan organizacije ! ");
           return 1;
       }
       PlayerInfo[giveplayerid][pMember] = 7;
PlayerInfo[giveplayerid][pTeam] = 11;
gTeam[giveplayerid] = 11;
       SendClientMessage(playerid, COLOR_WHITE, "  Invitao si igraca.");
       SendClientMessage(giveplayerid, COLOR_WHITE, "  Invitan si u mayor government.");
   }
}
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Nisi mayor ! ");
   return 1;
}
}
return 1;
   }

   if(strcmp(cmd,"/govuninvite",true)==0) // -
   {
if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Moras se logirati ! ");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
   tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /govuninvite [ID igraca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PlayerInfo[giveplayerid][pMember] != 7)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Nije clan vase organizacije taj igrac ! ");
           return 1;
}
PlayerInfo[giveplayerid][pMember] = 0;
PlayerInfo[giveplayerid][pRank] = 0;
PlayerInfo[giveplayerid][pTeam] = 3;
gTeam[giveplayerid] = 3;
new randomskin;
if(PlayerInfo[giveplayerid][pSex] == 1) { randomskin = random(sizeof(CivMalePeds)); }
else if(PlayerInfo[giveplayerid][pSex] == 1) { randomskin = random(sizeof(CivFemalePeds)); }
else { randomskin = random(sizeof(CivMalePeds)); }
SetPlayerSkin(giveplayerid, randomskin);
PlayerInfo[giveplayerid][pChar] = randomskin;
SendClientMessage(giveplayerid, COLOR_WHITE, "  Kickan si od strane mayora.");
SendClientMessage(playerid, COLOR_WHITE, "   Izbacen si iz Governmenta.");
   }
}
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   You're not the mayor ! ");
   return 1;
}
}
return 1;
   }
Invitanje u ORG

Citat: GeForce Mallcolm poslato April 22, 2010, 09:57:36 PRE PODNE
Citat: ...:::---TOMA-:::... poslato April 22, 2010, 09:27:36 PRE PODNE
Eo da pocnem ja sam tek poceo sriptat i znam objecte i aute zanima me kako naskriptat organizacije.
Akoo neko moze pomoc zamolio bi ga

Unaprijed HVALA!!! :P

evo ti neke od mojih 1 samo nedam vise xD

if(PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
   SetPlayerToTeamColor(playerid);
   SetPlayerInterior(playerid, 3);
   SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
   PlayerInfo[playerid][pInt] = 3;
   PlayerInfo[playerid][pLocal] = 241;
   return 1;
}

To ti je spawn

else if(PlayerInfo[targetid][pMember] == 7)//Mayor ranks
{
   if(PlayerInfo[targetid][pRank] == 1) { rtext = "Mayor's driver"; }
   else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Mayor's bodyguard"; }
   else if(PlayerInfo[targetid][pLeader] == 7) { rtext = "Mayor"; }
   else { rtext = "None"; }
}

Mayor rankovi

AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15

auta za majora
   if(strcmp(cmd,"/govinvite",true)==0) // -
   {
if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "Moras se logirati! ");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
   tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /govinvite [Id Igraca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PlayerInfo[giveplayerid][pMember] != 0)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec clan organizacije ! ");
           return 1;
       }
       if(PlayerInfo[giveplayerid][pLeader] != 0)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec clan organizacije ! ");
           return 1;
       }
       PlayerInfo[giveplayerid][pMember] = 7;
PlayerInfo[giveplayerid][pTeam] = 11;
gTeam[giveplayerid] = 11;
       SendClientMessage(playerid, COLOR_WHITE, "  Invitao si igraca.");
       SendClientMessage(giveplayerid, COLOR_WHITE, "  Invitan si u mayor government.");
   }
}
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Nisi mayor ! ");
   return 1;
}
}
return 1;
   }

   if(strcmp(cmd,"/govuninvite",true)==0) // -
   {
if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Moras se logirati ! ");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
   tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /govuninvite [ID igraca]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PlayerInfo[giveplayerid][pMember] != 7)
       {
           SendClientMessage(playerid, COLOR_GREY, "   Nije clan vase organizacije taj igrac ! ");
           return 1;
}
PlayerInfo[giveplayerid][pMember] = 0;
PlayerInfo[giveplayerid][pRank] = 0;
PlayerInfo[giveplayerid][pTeam] = 3;
gTeam[giveplayerid] = 3;
new randomskin;
if(PlayerInfo[giveplayerid][pSex] == 1) { randomskin = random(sizeof(CivMalePeds)); }
else if(PlayerInfo[giveplayerid][pSex] == 1) { randomskin = random(sizeof(CivFemalePeds)); }
else { randomskin = random(sizeof(CivMalePeds)); }
SetPlayerSkin(giveplayerid, randomskin);
PlayerInfo[giveplayerid][pChar] = randomskin;
SendClientMessage(giveplayerid, COLOR_WHITE, "  Kickan si od strane mayora.");
SendClientMessage(playerid, COLOR_WHITE, "   Izbacen si iz Governmenta.");
   }
}
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   You're not the mayor ! ");
   return 1;
}
}
return 1;
   }
Invitanje u ORG

To care ovo mi je trebalo!! HVALA!!!

on i reza su braca  :D  :D
MAP:

[MAP]Mall Caffe Bar
[MAP]Predsjednikova kuća
[MAP]Zatvor






Respect: Correlli, Momak, Zic, Nik, Blood, Neno, joxy, Hawks, Soprano ...

E bas mi je to trebalo..zasto ne radi cro-sector


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.


Kk thx neznan ja nista


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.

Citat: ...:::---TOMA-:::... poslato April 22, 2010, 10:52:57 PRE PODNE
E bas mi je to trebalo..zasto ne radi cro-sector

ma nije vazno..proradit ce on uskoro...
MAP:

[MAP]Mall Caffe Bar
[MAP]Predsjednikova kuća
[MAP]Zatvor






Respect: Correlli, Momak, Zic, Nik, Blood, Neno, joxy, Hawks, Soprano ...

Admin lvl 1i swat lider mi ostaju jel tako??


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.


kk  chris


Posjetite našu Grand Theft Auto IV Multiplayer (IV:MP) zajednicu.

kako da skinem mod za skriptu roleplay i kako te skripta ukratko
http://i.imgur.com/MMUzj.jpg
Pro Zupanja Rol3Play Gaming, dodite i uzivaj te u serveru[KLIKNI NA LINK].
Trazite se vele skripter nagrada 1339 admin, ako bude dobar dobije 1340 admina.
Obratite mi se na PM.