Započeo ceLL_
•24. Sep. 2010.[POMOC] GameSage
1,253
pregleda
3
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
579
Postovi:
99
Teme:
Pridružio se:Sep. 2010
24. Sep. 2010.
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......
Kako da im ubacim jos komandi npr: /kick /slap /tutorial /tunecar /goto /gethere /check /spec itd......
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
531
Postovi:
66
Teme:
Pridružio se:Avg. 2010
24. Sep. 2010.
ev oajmo uzeti /gotols za primjer
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos = 0.0;TelePos = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported !");
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
kod ovoga samo dodas
tako da bi ova komanda ovako izgledala
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos = 0.0;TelePos = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported !");
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}
if(PlayerInfo >= 3)kod ovoga samo dodas
||if(PlayerInfo >= 3)tako da bi ova komanda ovako izgledala
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 3) || if(PlayerInfo >= 4)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos = 0.0;TelePos = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, " Teleportiran si !");
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nemas pravod a koristis ovu komandu !");
}
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava