02.01.2012, 17:33
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(16)) { if(IsPlayerInRangeOfPoint(playerid,5,2595.5564,2790.8088,10.8203)) { if(GetPlayerSkin(playerid) == 27) { SetPlayerPos(playerid,-959.5364,1955.3010,9.0000); SetPlayerInterior(playerid,17); } else SendClientMessage(playerid,0xFF000000,"My text"); } if(IsPlayerInRangeOfPoint(playerid,5,-959.5364,1955.3010,9.0000)) { if(GetPlayerSkin(playerid) == 27) { SetPlayerPos(playerid,2595.5564,2790.8088,10.8203); SetPlayerInterior(playerid,0); } else SendClientMessage(playerid,0xFF000000,"My text"); } } return 1; }