Quote:
Originally Posted by Medal Of Honor team
You can do something like this
pawn Код:
if(strcmp("/tele", cmd, true) == 0) { new str1[128]; new names[MAX_PLAYER_NAME]; new Float:AX, Float:AY, Float:AZ; GetPlayerName(playerid, names, sizeof(names)); AX = 123; AY = 123; AZ = 123; SetPlayerPos(playerid, AX, AY, AZ); format(str1, sizeof(str1), "%s teleported to %f %f %f", names, Float:AX, Float:AY, Float:AZ); SendClientMessageToAll(ADMINFS_MESSAGE_COLOR, str1); return true; }
|
This code actually fails.
Don't use that code, ofcourse it will give errors.
Could you show us the code/command when you teleport?