[Pomoc] Komanda /leavedm

Započeo Dacho
14. Okt. 2012. Zaključano
456
pregleda
8
postova
danites
4
Made Man
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:
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);
}
Deleted User
Obrisan korisnik
14. Okt. 2012.
U OnPlayerCommandText.
new bool:komand;
if(komand == 1)
{
SendClientMessage(playerid, -1, "Nemozete sada koristiti komande.");
return 0;
}
I daj /leavedm komandu.
danites
4
Made Man
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
--Lood--
5
Crime Lord
14. Okt. 2012.
dodaj pod p info

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;

Deleted User
Obrisan korisnik
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;
}
--Lood--
5
Crime Lord
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 ?
danites
4
Made Man
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
danites
4
Made Man
14. Okt. 2012.
EDIT: Moze lock ovo ,sredio sam uz pomoc sa-mp ljudi  😉

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha