Započeo Dacho
•14. Okt. 2012.• Zaključano[Pomoc] Komanda /leavedm
472
pregleda
8
postova
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
446
Postovi:
58
Teme:
Pridružio se:Nov. 2010
14. Okt. 2012.
Skripta koju koristim:Edit bratovog DM-a
Detaljan opis problema😄a li neko moze da mi da primer kako da napravim komandu da ne moze niti jednu komandu da kuca kada je u toj dm areni,dok ne izadje iz nje komandom /leavedm
Dio skripte:
Detaljan opis problema😄a li neko moze da mi da primer kako da napravim komandu da ne moze niti jednu komandu da kuca kada je u toj dm areni,dok ne izadje iz nje komandom /leavedm
Dio skripte:
CMD:islanddm(playerid, params[])
{
new string, pName;
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
GameTextForPlayer(playerid,"~g~Waiting for the Objects to load",2000,3);
format(string, sizeof(string), "{FF0000}(/islanddm) {FFFF00}Player {FF0000}%s {FFFF00}has Teleported to {FF0000}Island DeathMatch",pName);
SendClientMessageToAll(playerid, string);
new Random = random(sizeof(RandomSpawnIslandDM));
SetPlayerPos(playerid, RandomSpawnIslandDM, RandomSpawnIslandDM, RandomSpawnIslandDM);
}14. Okt. 2012.
U OnPlayerCommandText.
new bool:komand;
if(komand == 1)
{
SendClientMessage(playerid, -1, "Nemozete sada koristiti komande.");
return 0;
}I daj /leavedm komandu.Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
446
Postovi:
58
Teme:
Pridružio se:Nov. 2010
14. Okt. 2012.
CMD:leavedm(playerid, params[])
{
new Random = random(sizeof(RandomSpawnLEAVEDM));
SetPlayerPos(playerid, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM); // Place the X Y Z of the position where they player will be when they type this command
SendClientMessage(playerid, COLOR_RED, "You have left the Deathmatch Area");
return 1;
}EDIT: Sta ti je ovo if(komand dobijam na njemu tag mismatch
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
804
Postovi:
115
Teme:
Pridružio se:Jul 2012
14. Okt. 2012.
dodaj pod p info
e sad dodaj ovo
i dodaj u komandu tu za port
pUdmarei
e sad dodaj ovo
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(PlayerInfo == 1) return SCM(playerid, 0xFFFFFF, "Nemozes koristiti nijednu komandu dok si u DM arei");
return 1;
}
i dodaj u komandu tu za port
PlayerInfo = 1;
14. Okt. 2012.
CMD:leavedm(playerid, params[])
{
if(komand == 1)
{
komand = 0;
new Random = random(sizeof(RandomSpawnLEAVEDM));
SetPlayerPos(playerid, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM); // Place the X Y Z of the position where they player will be when they type this command
SendClientMessage(playerid, COLOR_RED, "You have left the Deathmatch Area");
}
return 1;
}
{
if(komand == 1)
{
komand = 0;
new Random = random(sizeof(RandomSpawnLEAVEDM));
SetPlayerPos(playerid, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM); // Place the X Y Z of the position where they player will be when they type this command
SendClientMessage(playerid, COLOR_RED, "You have left the Deathmatch Area");
}
return 1;
}
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
804
Postovi:
115
Teme:
Pridružio se:Jul 2012
14. Okt. 2012.
Dacho wrote on October 14, 2012, 8:21 pm:
CMD:leavedm(playerid, params[])
{
new Random = random(sizeof(RandomSpawnLEAVEDM));
SetPlayerPos(playerid, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM); // Place the X Y Z of the position where they player will be when they type this command
SendClientMessage(playerid, COLOR_RED, "You have left the Deathmatch Area");
return 1;
}EDIT: Sta ti je ovo if(komand dobijam na njemu tag mismatch
eno probaj moje samo nsam te bas skonto jel ti oces da dok je u DM da nmz koristit ili kad nije u DM da nemoze koristit ?
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
446
Postovi:
58
Teme:
Pridružio se:Nov. 2010
14. Okt. 2012.
--Lood-- wrote on October 14, 2012, 8:21 pm:
CMD:leavedm(playerid, params[])
{
new Random = random(sizeof(RandomSpawnLEAVEDM));
SetPlayerPos(playerid, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM, RandomSpawnLEAVEDM); // Place the X Y Z of the position where they player will be when they type this command
SendClientMessage(playerid, COLOR_RED, "You have left the Deathmatch Area");
return 1;
}EDIT: Sta ti je ovo if(komand dobijam na njemu tag mismatch
eno probaj moje samo nsam te bas skonto jel ti oces da dok je u DM da nmz koristit ili kad nije u DM da nemoze koristit ?
Znaci ovako treba mi da kada je u DM ne moze koristiti niti jednu komandu osim obicnog chata ,i da proverava ako nije u dm areni da ne moze koristit komandu /leavedm i to tvoje nemam pInfo
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava