Quote:
Originally Posted by TheRockstar
lol 1st of all ur english is bad and m not able to understand anything!
|
Actually, his English is miles ahead of whatever you are speaking.
Anyways, let's get busy.
You can use CallRemoteFunction in any part of any script you are currently running on your server.
The way it works is easy:
- You create a function:
Let's just follow (read: copy) the wiki.
pawn Код:
forward callMe(const string[]);
public callMe(const string[])
{
printf("callMe> %s", string);
return 1;
}
After that, you put the CallRemoteFunction-function in any part of any script. Let's say, at "OnPlayerDeath" in a random filterscript.
Here's an example of what it could look like.
pawn Код:
OnPlayerDeath(playerid, killerid);
{
CallRemoteFunction("callMe", "s", "SOMEONE GOT KILLED!");
return 1;
}
Everytime someone gets killed, it will send a string to "CallMe", saying "SOMEONE GOT KILLED!"
For more info, please resort to the
Wiki and Gamemode/Tutorial sections.