19.05.2014, 15:02
It's rather simple.
Callbacks are some sort of functions that are called when something certain happens. For example, the callback "OnPlayerDeath" is called, when a player dies. And inside their braces, you write your script. When you have a certain script in those braces, it means you want exactly that to happen which is in those braces.
when a player dies, show him the client message "You have been killed" .
Callbacks are some sort of functions that are called when something certain happens. For example, the callback "OnPlayerDeath" is called, when a player dies. And inside their braces, you write your script. When you have a certain script in those braces, it means you want exactly that to happen which is in those braces.
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
SendClientMessage(playerid,-1,"You have been killed!");
return 1;
}