#2

1)
Use printf or SendClientMessage or whatever at the top of OnPlayerCommandText
pawn Код:
printf("Player %d typed a command: %s", playerid, commandtext);
2)
Use a timer and IsPlayerInRangeOfPoint to detect if a player went to the forbidden zone and teleport him then or use
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerVelocity(playerid, x, y, z);
SetPlayerVelocity(playerid, -x, -y, -z);
to knock him back.
Reply


Messages In This Thread
help - by omer5198 - 28.03.2011, 18:14
Re: help - by Mauzen - 28.03.2011, 18:23
Re: help - by Stigg - 28.03.2011, 18:23
Re: help - by omer5198 - 28.03.2011, 18:25
Re: help - by Mauzen - 29.03.2011, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)