0.3b + dcmd not work? - 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: 0.3b + dcmd not work? (
/showthread.php?tid=171039)
0.3b + dcmd not work? -
willsuckformoney - 25.08.2010
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?
Re: 0.3b + dcmd not work? -
LarzI - 25.08.2010
Have you correctly put the dcmd command function inside OnPlayerCommandText?
Try using zcmd. I can confirm that it's working.
Re: 0.3b + dcmd not work? -
willsuckformoney - 25.08.2010
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