31.08.2011, 03:23
I don't know if its bad to post 3 threads within an hour, but here is my question. I just made my first filterscript ever, so i don't really get how it works yet with filterscripts. I have removed the // before #DEFINE_FILTERSCRIPT on the top of the script itself. I also defined a few colours. Here is what i have added to my script:
Those are the three things i edited in my script. When compiling i get no single error.
But as soon as i try to use /heal it won't work. I also discovered that none of the commands work, i use PPC_Trucking5 as gamemode, from PowerPc603.
I hope to get help with this issue
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"Welcome to Fantasy RPG Trucking! We hope you have a great time!");
SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"Please read the /rules and /cmds before asking admins how to do it! Thanks!");
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"You have died!");
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an Admin!");
SetPlayerHealth(playerid,100);// heal the player
SendClientMessage(playerid, COLOR_YELLOW, "FT Bot: "#COL_GREEN"You have been healed!");
return 1;
}
return 0;
}
But as soon as i try to use /heal it won't work. I also discovered that none of the commands work, i use PPC_Trucking5 as gamemode, from PowerPc603.
I hope to get help with this issue