when do a cmd, how to disable ALL the teles?
#1

hey guys,
how do i make it that when a player does /deal, he cant use ANY teleport thats in the server anymore...
i dont think its too hard to make but i just dont know how XD
can anyone tell me?

greets niels

EDIT: i'm using ZCMD(if that makes difference XD)
Reply
#2

just make a variable, and when /deal set it to 1

At the teleports, only allow it if the variable is set to 0
Reply
#3

eehm how to make this?
XD
Reply
#4

top of script:
pawn Код:
new cantele[MAX_PLAYERS];
at on player connect:

pawn Код:
cantele[playerid] = 1;
at /deal

pawn Код:
cantele[playerid] = 0;
at the tele command:

pawn Код:
if(tele[playerid] == 1)
{
//your code here
Reply
#5

It can be done much more easy... But i have to know if you use zcmd or just normal sa-mp command.
Edit: what you said wont work since you used if(Tele == 1) it should be if(cantele == 1)
Reply
#6

pawn Код:
new
    DealEnable[ MAX_PLAYERS ];

CMD:deal( playerid, params[ ] )
{
    DealEnable[ playerid ] = 1;
    // Rest Of Code
    return 1;
}

// On Each teleport Add the following
// Ex:
CMD:teleport( playerid, params[ ] )
{
    if( DealEnable[ playerid ] == 1 ) return SendClientMessage( playerid, -1, "You cannot teleport" );
    // teleport Code
    return 1;
}
Reply
#7

hmm thnx dwane i like yours the most XD and thimo i use zcmd XD but i already have got help XD

btw: thimo read your PM's pls
Reply
#8

yeah it works thnx all XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)