0.3b + dcmd not work?
#1

I'm trying something I know everyone else already did the SetPlayerHoldingObject... It all compiles i have the the inclues ect into folders and it wont load the filterscript with the command...

pawn Код:
dcmd_tvhead(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
        if(TVHead[playerid] == 0)
        {
            SetPlayerHoldingObject(playerid, 1518, 15, 0, 0, 0.3);
            TVHead[playerid] = 1;
            SendClientMessage(playerid,green,"You now have a TVHead");
        }
        else if(TVHead[playerid] == 1)
        {
            StopPlayerHoldingObject(playerid);
            SendClientMessage(playerid,green,"You don't have a TVHead anymore");
            TVHead[playerid] = 0;
        }
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
    return 1;
}
Anyone can help?
Reply
#2

Have you correctly put the dcmd command function inside OnPlayerCommandText?
pawn Код:
dcmd(tvhead, 4 cmdtext);
Try using zcmd. I can confirm that it's working.
Reply
#3

durp i fixed it it wasn't my coding it was all right it was the fact that i just updated the includes not the .exe programs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)