Callback
#3

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.
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
        SendClientMessage(playerid,-1,"You have been killed!");
        return 1;
}
when a player dies, show him the client message "You have been killed" .
Reply


Messages In This Thread
Callback - by Le3aT - 19.05.2014, 14:53
Re: Callback - by JFF - 19.05.2014, 14:55
Re: Callback - by NaClchemistryK - 19.05.2014, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)