08.07.2016, 15:37
Hmm, u are beginner, so it will not be easy for you to understand.
But its really easy, just copy from filterscript to gamemode, you copy the code witch is added by owner of fs, you dont need to copy main callbacks. I will give you example:
this will be filterscript:
and this will be gamemode:
and what you only copy is this:
and final result in you gamemode is:
but lets say if you have custom functions in your filterscipt like this:
you will need to copy it whole to your gamemode, like this, this is now how should look like ur gamemode:
and vars like new,bool... in your filterscript you just copy it to your gamemode...
But its really easy, just copy from filterscript to gamemode, you copy the code witch is added by owner of fs, you dont need to copy main callbacks. I will give you example:
this will be filterscript:
PHP код:
public OnPlayerConnect(playerid) {
SendClientMessage(playerid,-1,"Filterscript");
return 1;
}
PHP код:
public OnPlayerConnect(playerid) {
return 1;
}
PHP код:
SendClientMessage(playerid,-1,"Filterscript");
PHP код:
public OnPlayerConnect(playerid) {
SendClientMessage(playerid,-1,"Filterscript");
return 1;
}
PHP код:
forward Test123();
public Test123() {
//some code blaahhh...
return 1;
}
PHP код:
public OnPlayerConnect(playerid) {
SendClientMessage(playerid,-1,"Filterscript");
return 1;
}
forward Test123();
public Test123() {
//some code blaahhh...
return 1;
}