11.07.2015, 12:40
Try this out :
PHP код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
new string[42];
new pname[24];
GetPlayerName(playerid,pname,sizeof(pname));
if(GetPlayerInterior(playerid) != 0)
{
format(string, sizeof(string), "%s went from interior %d to interior %d!", pname,oldinteriorid, newinteriorid);
SendClientMessage(playerid, COLOR_ORANGE, string);
DestroyDynamicCP(TracerCP[playerid]);
KillTimer(TraceTimer[playerid]);
Trace[playerid] = 0;
}
return 1;
}