04.10.2011, 12:08
pawn Код:
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;
}