27.06.2012, 06:58
Quote:
Fixed
pawn Код:
Make a global variable or a Boolean, and then set it to true or 1 when the player connects. Then, when they do /goff, set it to 0. Then, on the command, check if the Boolean or global variable is value 0 for the playerid, and if it is, you can't teleport to them. EDIT: TIP: Use [.pawn] and [./pawn] tags instead of the current ones you are using in the future (without the period, of course). |
EDIT: If player use /goff he can toggle his go to off and on.
Example /goff - Go Enabled /goff - Go Disabled
If player disabled his /go. the player who try to go to him will show this on screen.
GameTextForPlayer(playerid,"Playername Go is disabled",2000,3);