Question
#6

Quote:
Originally Posted by enzulikeS
Посмотреть сообщение
i said not this way
i don't want to put the filterscript

i want the code from the filterscript inserted to my gamemode..
Oh. In that case, open the filterscript in Pawno. copy the variables to the gamemode script. (Doublecheck that there isnґt any conflicts)

Next, lets say for example that this is your filterscript:

Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
Find OnPlayerConnect -callback from your gamemode, then copy everything that is inside the filterscripts callback (I painted it red in my example) under the gamemodesґ OnPlayerConnect -callback.
Reply


Messages In This Thread
Question - by enzulikeS - 31.01.2018, 11:59
Re: Question - by FaLLenGirL - 31.01.2018, 12:10
Re: Question - by enzulikeS - 31.01.2018, 12:33
Re: Question - by HNIC - 31.01.2018, 12:35
Re: Question - by enzulikeS - 31.01.2018, 13:24
Re: Question - by HNIC - 31.01.2018, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)