28.12.2014, 03:41
OnPlayerUpdate is called just for players or npcs too?
public OnPlayerUpdate(playerid)
{
SendClientMessage(playerid,-1,"Hello , this message will show each 1 second,");
// This will show only to the player
return true;
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerNPC(playerid))
{
// do something to NPCs
}
else
{
// do something to players
}
return true;
}