Bierzesz to
Kod php:
public Sing(id, skill, prop)
{
new players[MAX_PLAYERS], pnum, aid;
poke_get_players(players, pnum, PLAYER_ALIVE);
new radius = SING_RADIUS + SkillLevel(id, skill)
new affected;
for ( new i = 0; i < pnum; i++ )
{
aid = players[i];
poke_sound(aid, CHAN_VOICE, SND_SING);
if( !Pokemod_FF(id, aid) && fm_entity_range(id,aid) < radius ) {
poke_print(aid, print_center, "You fell asleep to someone's singing.");
ApplyStatus( id, aid, STATUS_ASLEEP, SING_SLEEP );
affected++;
}
}
ActionPrint(id, print_center, affected, "sang to");
return SKILL_USED;
}
Zamieniasz zmienne na twoje wartości, ewentualnie możesz zaincludować <pokemod>
Miłej zabawy.