16.05.2010, 21:47
Every public function can be called script wise, since they're only functions and nothing else
Examples:
Examples:
pawn Code:
public OnPlayerConnect(playerid)
{
OnPlayerCommandText(playerid, "/commands"); //will simulate that the player typed /commands
OnPlayerText(playerid, "hello"); //will simulate that the player typed hello (im not sure if the text is displayed in chat)
OnPlayerPickUpPickup(playerid, 3); //will tell the script that the player pickup a pickup with the id 3 (of course the player didn't)
return 1;