Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
yes, it's called, not surprisingly, 'OnPlayerText'
params:
playerid - player who typed text
text[] - text they entered
|
Lol i know that, i was asking for that:
Quote:
Originally Posted by dice7
Every public function can be called script wise, since they're only functions and nothing else
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;
|
Anyway, thanks to both!