[Include] [ASF] Advanced Spawn Functions
#1

uma include simples, com intuito de facilitar o uso do spawn, para que fique de maneira simples!

features:
PHP Code:
Spawn(playeridskinFloat:x,Float:y,Float:zFloat:a=0.0time 0)//main function to give spawn
//skin -1 is random, or value chosen
//x,y,z are coordinates
//a is angled
//time how long will spawn
GetSpawnTimerID(playerid)//settimerex id
GetSpawnTimeLeft(playeridfrom=-1)//Remaining time to spawn (-1 for current time, or use custom timestamp)
bool:IsSpawnProgrammed(playerid)//the player is waiting for a spawn
CancelSpawn(playerid)//cancel spawn on hold
RANDOMSPAWN<list>//spawn will be drawn, with the coordinates of an example list below:
RANDOM_SKIN//random skin from 0 to 299 
exemplo do random spawn:
PHP Code:
new Float:posicoes[4][3]=
{
    {
2334.7942,2444.2695,5.6833},
    {
2237.4199,2453.0857,10.6711},
    {
1545.0884,-1627.2146,13.4828},
    {
1588.9736,-1637.3667,13.5381}
};
public 
OnPlayerConnect(playerid)
{
    
Spawn(playerid, -1RANDOMSPAWN<posicoes>,0.01000);
    return 
1;

https://pastebin.com/wFhRHTsC

Bom uso desta include!


estou com preguiзa de fazer um topico bonito, mas o que importa й o realese!
Reply
#2

Good job, legal good to include.
Reply
#3

Maneiro, pode ajudar alguns novatos.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)