public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1154.2109,-1772.5402,16.5992))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1491.6151,1305.8239,1093.2964);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0, 1494.4178,1303.8285,1093.2891))
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1154.0786,-1768.2622,16.5938);
return 1;
}
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
'-' ve isso para ai nem mexo mais com samp mais acho se vc estudar isso ai vai ajudar :v |