24.09.2013, 03:17
Olб pessoal do fуrum! alguйm tem as animaзхes do /handsup e /mijar, caso nгo conheзa sгo: no /handsup o personagem fica com as mгos para cima, e no /mijar nem precisa falar... Conto com a ajuda de vocкs! Grato.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
public OnPlayerCommandText(playerid, cmdtext[])
{
new AnimState[MAX_PLAYERS];
if (strcmp("/handsup", cmdtext, true, 10) == 0) // hands up = maos em cima
{
if (AnimState[playerid] == 1){return 1;} else {
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
AnimState[playerid] = 1;}
return 1;
}
if (strcmp("/pee", cmdtext, true, 10) == 0) // pee = mijar
{
if (AnimState[playerid] == 1){return 1;} else {
SetPlayerSpecialAction(playerid, 68);
AnimState[playerid] = 1;}
return 1;
}
if (strcmp("/stop", cmdtext, true, 10) == 0) // stop = parar
{
if (AnimState[playerid] == 0){return 1;} else {
ClearAnimations(playerid);
AnimState[playerid] = 0;}
return 1;
}
return 0;
}
/Handsup
pawn Код:
pawn Код:
|
PHP код:
|