public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/pee", cmdtext, true, 4) == 0) { SetPlayerSpecialAction(playerid, 68); return 1; } if (strcmp("/Smoke", cmdtext, true, 6) ==0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY); SendClientMessage(playerid, 0xFFFF00AA, "To smoke, use the left mouse buttom."); return 1; } if (strcmp("/handsup", cmdtext, true, 8) ==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); SendClientMessage(playerid, 0xFFFF00AA, "Presh enter to stop the annim"); return 1; } if (strcmp("/drink", cmdtext, true, 6) ==0) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom"); return 1; } if (strcmp("/dance", cmdtext, true, 6) ==0) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); return 1; } if (strcmp("/anims", cmdtext, true, 6) ==0) { SendClientMessage(playerid, 0xFFFFFFFF, ".::Anims List::."); SendClientMessage(playerid, 0xFFFFFFFF, "/pee, /smoke, /handsup, /drink, /dance"); return 1; } if (strcmp("/rules", cmdtext, true, 6) == 0) { SendClientMessage(playerid, 0xFFFFFFFF, ".::Rules::."); SendClientMessage(playerid, 0xFFFFFFFF, "#1.Keep Profane Language to a Minimum."); SendClientMessage(playerid, 0xFFFFFFFF, "#2.No Spamming or Adverts."); SendClientMessage(playerid, 0xFFFFFFFF, "#3.No intentional spawnkilling."); SendClientMessage(playerid, 0xFFFFFFFF, "#4.Do not bother people who do not want to be bothered."); SendClientMessage(playerid, 0xFFFFFFFF, "#5.Please report anything you see via /report [id] (reason) or use the forums."); SendClientMessage(playerid, 0xFFFFFFFF, "#6.Please check /help & /help2 before approaching an admin for help."); SendClientMessage(playerid, 0xFFFFFFFF, "#7.Don't ask anyone for admin or money, PERIOD!!"); SendClientMessage(playerid, 0xFFFFFFFF, "#8.Do not hack, cheat, or use third party mods that affect multiplayer gameplay."); SendClientMessage(playerid, 0xFFFFFFFF, "#9.Please respect all admins and PCRP Members and what they ask of you."); return 1; } return 0; }
#include <ZCMD>
CMD:pee(playerid, params[])
{
SetPlayerSpecialAction(playerid, 68);
return 1;
}
CMD:smoke(playerid, params[])
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
SendClientMessage(playerid, 0xFFFF00AA, "To smoke, use the left mouse buttom.");
return 1;
}
CMD:handsup(playerid, params[])
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
SendClientMessage(playerid, 0xFFFF00AA, "Presh enter to stop the annim");
return 1;
}
CMD:drink(playerid, params[]_
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
return 1;
}
CMD:dance(playerid, params[])
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
return 1;
}
CMD:anims(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFFF, ".::Anims List::.");
SendClientMessage(playerid, 0xFFFFFFFF, "/pee, /smoke, /handsup, /drink, /dance");
return 1;
}
CMD:rules(playerid, params[])
{
SendClientMessage(playerid, 0xFFFFFFFF, ".::Rules::.");
SendClientMessage(playerid, 0xFFFFFFFF, "#1.Keep Profane Language to a Minimum.");
SendClientMessage(playerid, 0xFFFFFFFF, "#2.No Spamming or Adverts.");
SendClientMessage(playerid, 0xFFFFFFFF, "#3.No intentional spawnkilling.");
SendClientMessage(playerid, 0xFFFFFFFF, "#4.Do not bother people who do not want to be bothered.");
SendClientMessage(playerid, 0xFFFFFFFF, "#5.Please report anything you see via /report [id] (reason) or use the forums.");
SendClientMessage(playerid, 0xFFFFFFFF, "#6.Please check /help & /help2 before approaching an admin for help.");
SendClientMessage(playerid, 0xFFFFFFFF, "#7.Don't ask anyone for admin or money, PERIOD!!");
SendClientMessage(playerid, 0xFFFFFFFF, "#8.Do not hack, cheat, or use third party mods that affect multiplayer gameplay.");
SendClientMessage(playerid, 0xFFFFFFFF, "#9.Please respect all admins and PCRP Members and what they ask of you.");
return 1;
}
1- Your indentation is fucked.
2- Use zcmd as Swizzyy Gave it you. 3- Try to don't have another FS that uses the same anims codes. 4- Compile with 0.3c and download new includes. |
yeah i see that now thanks heaps guys much appreciated i converted everything over and all is working great
ps.Swizzzy i gave you +rep thanks for your help |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pee", cmdtext, true, 4) == 0)
{
SetPlayerSpecialAction(playerid, 68);
return 1;
}
if (strcmp("/Smoke", cmdtext, true, 6) ==0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
SendClientMessage(playerid, 0xFFFF00AA, "To smoke, use the left mouse buttom.");
return 1;
}
if (strcmp("/handsup", cmdtext, true, 8) ==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
SendClientMessage(playerid, 0xFFFF00AA, "Presh enter to stop the annim");
return 1;
}
if (strcmp("/drink", cmdtext, true, 6) ==0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
return 1;
}
if (strcmp("/dance", cmdtext, true, 6) ==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
return 1;
}
if (strcmp("/anims", cmdtext, true, 6) ==0)
{
SendClientMessage(playerid, 0xFFFFFFFF, ".::Anims List::.");
SendClientMessage(playerid, 0xFFFFFFFF, "/pee, /smoke, /handsup, /drink, /dance");
return 1;
}
if (strcmp("/rules", cmdtext, true, 6) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, ".::Rules::.");
SendClientMessage(playerid, 0xFFFFFFFF, "#1.Keep Profane Language to a Minimum.");
SendClientMessage(playerid, 0xFFFFFFFF, "#2.No Spamming or Adverts.");
SendClientMessage(playerid, 0xFFFFFFFF, "#3.No intentional spawnkilling.");
SendClientMessage(playerid, 0xFFFFFFFF, "#4.Do not bother people who do not want to be bothered.");
SendClientMessage(playerid, 0xFFFFFFFF, "#5.Please report anything you see via /report [id] (reason) or use the forums.");
SendClientMessage(playerid, 0xFFFFFFFF, "#6.Please check /help & /help2 before approaching an admin for help.");
SendClientMessage(playerid, 0xFFFFFFFF, "#7.Don't ask anyone for admin or money, PERIOD!!");
SendClientMessage(playerid, 0xFFFFFFFF, "#8.Do not hack, cheat, or use third party mods that affect multiplayer gameplay.");
SendClientMessage(playerid, 0xFFFFFFFF, "#9.Please respect all admins and PCRP Members and what they ask of you.");
return 1;
}
return 0;
}