Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ceLL_ poslato Septembar 24, 2010, 02:56:29 PRE PODNE

Naslov: [POMOC] GameSage
Poruka od: ceLL_ poslato Septembar 24, 2010, 02:56:29 PRE PODNE
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......
Naslov: Odg: [POMOC] GameSage
Poruka od: LuKsA poslato Septembar 24, 2010, 07:44:35 PRE PODNE
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
Naslov: Odg: [POMOC] GameSage
Poruka od: Tony Zero poslato Septembar 24, 2010, 07:48:39 PRE PODNE
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;
   }