14.11.2011, 10:47
Hey.. I have this part of my /enter command.. but I want people to enter the buildings by pressing left shift (its sprint) i tried few things.. but just couldnt figure it out..
anyway.. this is the part of my /enter..
btw.. i would love if someone explain to me how to do it instaed of just posting the code 
thanks
anyway.. this is the part of my /enter..
Код:
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.0, playerid,2232.8140,-1159.8369,25.8906))
{
if (GetPlayerKeys(playerid,KEY_SPRINT,&updown, &leftright);
{
SetPlayerInterior(playerid,15);
SetPlayerPos(playerid,2214.6133,-1150.4756,1025.7969);
GameTextForPlayer(playerid, "~w~Welcome to the Jefferson Hotel", 5000, 1);
}
}

thanks

