ivás:
if(strcmp(cmd, \"/cappy\", true) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { return 1; }
if (!strlen(cmdtext[7])) return SendClientMessage(playerid,COLOR_USAGE,\"Használat: /cappy [1-3]\");
switch (cmdtext[7])
{
case \'1\': LoopingAnim(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1,1,1,1);
case \'2\': LoopingAnim(playerid,\"PAULNMAC\", \"pnm_loop_a\", 3.0, 1, 0, 0, 0, 0);
case \'3\': LoopingAnim(playerid,\"PAULNMAC\", \"pnm_loop_b\", 3.0, 1, 0, 0, 0, 0);
default: SendClientMessage(playerid,COLOR_USAGE,\"Használat: /cappy [1-3]\");
}
return 1;
}
evés:
if (strcmp(\"/hamburger\", cmdtext, true) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { return 1; }
OnePlayAnim(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);
return 1;
}