19.06.2016, 11:44
(
Последний раз редактировалось Thinh; 24.06.2016 в 07:55.
)
DELETE
//OnGameModeInit :
new OurActor = CreateActor(SkinID, PosX, PosY, PosZ, facingangle);
//OnPlayerKeyStateChange :
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_YES))
{
new Float:PosXACtor, Float:PosYACtor, Float:PosZACtor;
GetActorPos(OurActor, PosXACtor, PosYACtor, PosZACtor);
if(IsPlayerInRangeOfPoint(playerid, 2.0, PosXACtor, PosYACtor, PosZACtor))
{
SendClientMessage(playerid, -1, "Actor said: Hello!");
}
}
return 1;
}