Adding FS to GM
#1

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)