21.04.2013, 17:03
PHP код:
YCMD:smoke(playerid, params[],help)
{
#pragma unused help
if(sscanf(params,"s", anims))
return SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /smoke [1-4]");
switch(anims)
{
case 1: ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
case 2: ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
case 3: ApplyAnimation(playerid, "SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
case 4: ApplyAnimation(playerid, "SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0);
}
return 1;
}
E este seria o melhor !