16.01.2011, 20:19
lol u cant just write /enter ![Tongue](images/smilies/razz.gif)
U have to write ur code there.
E.g. a SetPlayerPos(); command for teleporting a player into another interior.
Just put the code u have in the /enter command into this function
![Tongue](images/smilies/razz.gif)
U have to write ur code there.
E.g. a SetPlayerPos(); command for teleporting a player into another interior.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_JUMP)
{
SetPlayerPos(playerid,x,y,z);
SetPlayerInterior(playerid,YOUR_ID_HERE);
SendClientMessage(playerid,COLOUR,"You've been teleported into a building using the JumpKey");
}
return 1;
}