SA-MP Forums Archive
Adding FS to GM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Adding FS to GM (/showthread.php?tid=264941)



Adding FS to GM - ColdIce - 28.06.2011

I want to add a votekick FS to my GM, but I get many errors and shitload of warnings.

This is the script http://pastebin.com/vXdrZL0M

I put all the define+new at the top
Everything under public OnFilterScriptInit() goes under public OnFilterScriptInit() in my GM etc etc
pawn Код:
stock StartVoteKick(playerid)
    {
            if(!IsPlayerConnected(playerid)) return 0;
            PlayerToKick = playerid;
            IsVoteKickStarted = true;
            TextDrawShowForAll(Background);
            TextDrawShowForAll(VoteKickTitle);
            TextDrawShowForAll(VoteKickName);
            GetPlayerName(playerid,name,sizeof(name));
            TextDrawSetString(VoteKickName,name);
            TextDrawShowForAll(VoteKickVote);
            TextDrawShowForAll(VoteKickTime);
            for(new i = 0; i<MAX_PLAYERS; i++)
                HasPlayerVoted[i] = false;
            SetTimer("KickTimer",1000,false);
            return 1;
    }
Then these things, I was told to put it at the bottom so I did.

Can anyone help me to put this into the GM?