25.08.2010, 02:58
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...
Anyone can help?
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;
}