SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese > Lançamentos/Releases

Reply
 
Thread Tools Display Modes
Old 14/02/2018, 03:53 PM   #1
RazorGuigo
High-roller
 
RazorGuigo's Avatar
 
Join Date: May 2016
Location: South is my Country
Posts: 1,154
Reputation: 104
Thumbs up [ASF] Advanced Spawn Functions

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!
RazorGuigo is offline   Reply With Quote
Old 14/02/2018, 04:51 PM   #2
SpikeCompiler
Huge Clucker
 
SpikeCompiler's Avatar
 
Join Date: Dec 2017
Location: Rio de Janeiro - RJ
Posts: 263
Reputation: 14
Default Re: [ASF] Advanced Spawn Functions

Good job, legal good to include.
SpikeCompiler is offline   Reply With Quote
Old 14/02/2018, 06:28 PM   #3
IlanZ
High-roller
 
IlanZ's Avatar
 
Join Date: Jul 2016
Location: Brasil
Posts: 1,381
Reputation: 75
Default Re: [ASF] Advanced Spawn Functions

Maneiro, pode ajudar alguns novatos.
IlanZ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Advanced Anti-Spawn Kill samp_boy Filterscripts 13 25/03/2014 01:29 PM
[FilterScript] [FS | BETA] Advanced Vehicle Spawn G3n1uS Gamemode Scripts 4 11/04/2013 03:40 PM
[Help] Advanced Spawn Optimus_Sprite Scripting Help 6 09/04/2012 10:31 AM


All times are GMT. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.