12.08.2012, 15:33
inicio
public OnPlayerCommandText(playerid, cmdtext[])
no final
pawn Код:
new poderoso;
forward caca(playerid);
pawn Код:
if (strcmp("/entrar12", cmdtext, true, 10) == 0)
{
ApplyAnimation(playerid,"PED","DOOR_LHinge_O",4.1,0,1,1,1,1);//animaзao
poderoso = SetTimerEx("caca", 100, 0, "i", playerid);
return 1;
}
pawn Код:
public caca(playerid)
{
//funзao
OnPlayerCommandText(playerid,"/entrar");//executa o comando de /entrar
return 1;
}