Aiuto pawwno,

comandi vietati in certe aree, è textdraw

« Older   Newer »
 
  Share  
.
  1.     +1   -1
     
    .
    Avatar

    Advanced Member

    Group
    Administrator
    Posts
    1,720
    reputazione
    +285

    Status
    Anonymous
    ciao
    c'è qualcuno che può spiegarmi come fare in modo da creare aree, in cui non si possono usare i commandi?
    ad esempio al /dm
    Grazie

    Una breve spiegazione anche alla creazione dei textdraw
    grazie a chi mi aiuta :)

    Edited by ComixLOL - 2/11/2013, 15:55
     
    Top
    .
  2. Captive
        +1   +1   -1
     
    .

    User deleted


    Nel comando /dm inserisci una variabile booleana.
    in cima:
    CODICE
    new bool:DeathMatch[MAX_PLAYERS];

    nel comando /dm inserisci:
    CODICE
    DeathMatch[playerid] = true;

    mentre quando esci dal DM la setti su false.
    In OnPlayerCommandText, prima di ogni comando inserisci:
    CODICE
    if(DeathMatch[playerid] == false)return SendClientMessage(playerid, colore, "Errore: impossibile eseguire comandi nei deathmatch");


    Per le TextDraw usa questo FS:
    http://forum.sa-mp.com/showthread.php?t=117851
     
    Top
    .
1 replies since 1/11/2013, 18:10   53 views
  Share  
.