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......
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
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;
}