SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 03/09/2016, 09:46 PM   #7931
Whoo
Guest
 
Posts: n/a
Default Re: Dúvidas Curtas #1

https://wiki.sa-mp.com/wiki/AddStaticVehicleEx

https://wiki.sa-mp.com/wiki/AddStaticVehicle não tem sirene
Code:
stock Ips_AddStaticVehicle(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2)
{
    new vehicleid = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}
#if defined _ALS_AddStaticVehicle
#undef AddStaticVehicle
#else
#define _ALS_AddStaticVehicle
#endif
#define AddStaticVehicle Ips_AddStaticVehicle

stock Ips_CreateVehicle(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, timespawn, addsiren=0)
{
    new vehicleid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, timespawn, addsiren);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}
#if defined _ALS_CreateVehicle
#undef CreateVehicle
#else
#define _ALS_CreateVehicle
#endif
#define CreateVehicle Ips_CreateVehicle

stock Ips_AddStaticVehicleEx(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, timespawn, addsiren=0)
{
    new vehicleid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, timespawn, addsiren);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}
  Reply With Quote
Old 03/09/2016, 09:55 PM   #7932
LocoAbreu
Little Clucker
 
LocoAbreu's Avatar
 
Join Date: May 2015
Location: Rio de Janeiro
Posts: 5
Reputation: 0
Default Re: Dúvidas Curtas #1

Quote:
Originally Posted by Whoo View Post
https://wiki.sa-mp.com/wiki/AddStaticVehicleEx

https://wiki.sa-mp.com/wiki/AddStaticVehicle não tem sirene
Code:
stock Ips_AddStaticVehicle(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2)
{
    new vehicleid = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}
#if defined _ALS_AddStaticVehicle
#undef AddStaticVehicle
#else
#define _ALS_AddStaticVehicle
#endif
#define AddStaticVehicle Ips_AddStaticVehicle

stock Ips_CreateVehicle(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, timespawn, addsiren=0)
{
    new vehicleid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, timespawn, addsiren);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}
#if defined _ALS_CreateVehicle
#undef CreateVehicle
#else
#define _ALS_CreateVehicle
#endif
#define CreateVehicle Ips_CreateVehicle

stock Ips_AddStaticVehicleEx(modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, timespawn, addsiren=0)
{
    new vehicleid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, timespawn, addsiren);
    EachAdd(VehiclesCreated, vehicleid);
    return vehicleid;
}

Fiz isso e deu certo.. Valeu ae pela ajuda
__________________
"A vida me ensinou a nunca desistir. Nem ganhar, nem perder mas procurar evoluir."

"No que diz respeito ao empenho, ao compromisso, ao esforço, à dedicação, não existe meio termo. Ou você faz uma coisa bem feita ou não faz."
LocoAbreu is offline   Reply With Quote
Old 04/09/2016, 01:02 AM   #7933
CaioTJF
Gangsta
 
CaioTJF's Avatar
 
Join Date: Sep 2012
Location: Rio de Janeiro
Posts: 541
Reputation: 148
Default Re: Dúvidas Curtas #1

What the hell is EachAdd?
__________________

IP: 35.196.228.74:2009 / Website: www.gtatorcidas.net



CaioTJF is offline   Reply With Quote
Old 04/09/2016, 01:15 AM   #7934
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,311
Reputation: 200
Default Re: Dúvidas Curtas #1

Quote:
Originally Posted by CaioTJF View Post
What the hell is EachAdd?
Uma função de uma include similar a y_iterate do ****** feita por ips bruno.
__________________


Dayvison_ is offline   Reply With Quote
Old 04/09/2016, 01:51 AM   #7935
JonathanFeitosa
High-roller
 
Join Date: Jan 2011
Location: Manaus/AM
Posts: 2,760
Reputation: 346
Default Re: Dúvidas Curtas #1

https://www.youtube.com/watch?v=wXrgIuZatqc

https://www.youtube.com/watch?v=SgY2O515FBs

Fake ou nens? De IP e kick...
__________________
Programador Java & Android
Instagram: jonathanfeitosajfs
JonathanFeitosa is offline   Reply With Quote
Old 04/09/2016, 01:57 AM   #7936
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,311
Reputation: 200
Default Re: Dúvidas Curtas #1

Fake
__________________


Dayvison_ is offline   Reply With Quote
Old 04/09/2016, 01:38 PM   #7937
Hayzer
Little Clucker
 
Join Date: Jan 2016
Posts: 15
Reputation: 0
Default Re: Dúvidas Curtas #1

Não é fake, tem uma extensão para o cleo que fizeram a um tempo atrás, que permite editar informações do client do samp, pode pesquisar ai, se chama sampfuncs.asi e funciona junto com o cleo
Hayzer is offline   Reply With Quote
Old 04/09/2016, 03:29 PM   #7938
JonathanFeitosa
High-roller
 
Join Date: Jan 2011
Location: Manaus/AM
Posts: 2,760
Reputation: 346
Default Re: Dúvidas Curtas #1

Quote:
Originally Posted by Hayzer View Post
Não é fake, tem uma extensão para o cleo que fizeram a um tempo atrás, que permite editar informações do client do samp, pode pesquisar ai, se chama sampfuncs.asi e funciona junto com o cleo
Manda por mensagem privada? Sampfuncs existem milhoes
__________________
Programador Java & Android
Instagram: jonathanfeitosajfs
JonathanFeitosa is offline   Reply With Quote
Old 08/09/2016, 05:11 PM   #7939
Ender_
Guest
 
Posts: n/a
Default Re: Dúvidas Curtas #1

Bom.. Uma duvida que sempre tive.. ao começar a usar zCMD

acho que todos sabem q strcmp tem como usar 2 comando para a mesma função..
exemplo
pawn Code:
if(!strcmp(cmd, "/limparchat", true) || !strcmp(cmd, "/lc", true))
{
    return 1;
}

será que no zCMD tem como fazer o mesmo ?
pawn Code:
CMD:limparchat(playerid, params[])
{
    return 1;
}
  Reply With Quote
Old 08/09/2016, 05:40 PM   #7940
Whoo
Guest
 
Posts: n/a
Default Re: Dúvidas Curtas #1

tem..
Code:
command(lc, playerid, params[]) return cmd_limparchat(playerid, params);
agora em pawn.cmd é bem mais interessante...

Code:
#include <Pawn.CMD>

cmd:help(playerid, params[])
{
    // code here
    return 1;
}
alias:help("commands", "cmds", "menu"); // case insensitive
  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
[Ajuda] Dúvidas, dúvidas e mais dúvidas. Mito_FmZ Português/Portuguese 6 30/07/2012 05:42 AM
[DUVIDAS] Duvidas sobre GM Waldrey Português/Portuguese 3 01/06/2012 03:56 PM
[Duvidas]Algumas duvidas. Felipe_Wesker Português/Portuguese 11 07/05/2012 09:31 PM
[DUVIDAS] matheuzinho Português/Portuguese 3 29/09/2010 11:07 PM
[DUVIDAS] Como faço isto?? (várias duvidas) andmeida10 Português/Portuguese 3 18/03/2010 10:06 AM


All times are GMT. The time now is 11:05 PM.


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