Could i do this on my SA-MP server? (UNANSWERED)
#10

Quote:
Originally Posted by BigETI
Посмотреть сообщение
Some people still doesn't know how to hook functions/callbacks so you have to do
pawn Код:
public OnPlayerConnect(playerid)
{
    D_OnPlayerConnect(playerid);
    //The rest of your code under this callback...
}

public OnPlayerDisconnect(playerid, reason)
{
    D_OnPlayerDisconnect(playerid);
    //The rest of your code under this callback...
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    D_OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
    //The rest of your code under this callback...
}
The rest of what code under this callback is my problem, and do i have to put #include damage.inc and place the include into the pawno/includes folder? i'm confused, so what you posted, goes in a filterscript, that you create by putting the include (which to my knowledge adds more commands) into pawno/includes, creating the filterscript you posted, and then activating the filterscript, it should work?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)