Featured Replies
This topic is now closed to further replies.
Recently Browsing 0
- No registered users viewing this page.
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
if(!strcmp(cmdtext, "/goto", true, 5)) { new targetPlayer = strval(cmdtext[ 6 ]); new Float: PlayerPosition[ 3 ]; if(!IsPlayerConnected(targetPlayer)) return 1; if(IsPlayerAdmin(playerid)) if(AllowGoto[targetPlayer] == 0) { SendClientMessage(playerid, COLOR_RED, "The player doesn't want you to teleport to him/her"); return 1; } { GetPlayerPos(targetPlayer, PlayerPosition[ 0 ], PlayerPosition[ 1 ], PlayerPosition[ 2 ]); SetPlayerPos(playerid, PlayerPosition[ 0 ], PlayerPosition[ 1 ], (PlayerPosition[ 2 ]+10)); } return 1; } if (strcmp("/yesgoto", cmdtext, true) == 0) { AllowGoto[playerid] = 1; SendClientMessage(playerid, COLOR_GREEN, "Now everybody can teleport to you"); return 1; } if (strcmp("/nogoto", cmdtext, true) == 0) { AllowGoto[playerid] = 0; SendClientMessage(playerid, COLOR_GREEN, "Now nobody can teleport to you"); return 1; }Hoe kan dat dat /yesgoto en /nogoto het niet doet?
Edited by Las Vegas