[POMOC] GameSage

Započeo ceLL_, Septembar 24, 2010, 02:56:29 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam Raven's gamemode i u taj mod ima GameSage ali GameSage-ovi nemaju ni jednu komandu samo /gsduty

Kako da im ubacim jos komandi npr: /kick /slap /tutorial /tunecar /goto /gethere /check /spec  itd......
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

omg lol, vec si tu preko mjesec dana i neznas najosnovnije stvari, nadji gdje ti je pAdmin i dodaj poslije toga || PlayerInfo[playerid][pGameSage] >= 1
Aequam memento rebus in arduis servare mentem.

ev oajmo uzeti /gotols za primjer
if(strcmp(cmd, "/gotols", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
}
}
return 1;
}


if(PlayerInfo[playerid][pAdmin] >= 3)
kod ovoga samo dodas
||if(PlayerInfo[playerid][pGameSage] >= 3)
tako da bi ova komanda ovako izgledala
if(strcmp(cmd, "/gotols", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(PlayerInfo[playerid][pAdmin] >= 3) || if(PlayerInfo[playerid][pGameSage] >= 4)
         {
            if (GetPlayerState(playerid) == 2)
            {
               new tmpcar = GetPlayerVehicleID(playerid);
               SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
               TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
               SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
            }
            SendClientMessage(playerid, COLOR_GRAD1, "   Teleportiran si !");
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Nemas pravod a koristis ovu komandu !");
         }
      }
      return 1;
   }