SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 352
Search took 0.01 seconds.
Search: Posts Made By: 1sbedx
Forum: Português/Portuguese 15/07/2020, 02:05 AM
Replies: 6
[Ajuda] Cor HTML
Views: 88
Posted By 1sbedx
Re: Cor HTML

bool: IsValidHexColorCode(const code[]) {
new retn;
return (sscanf(code, "x", retn), !!retn);
}



if (response) {
if (strlen(inputtext) != strlen("FFFFFF") || isnull(inputtext) ||...
Forum: Português/Portuguese 14/07/2020, 11:31 PM
Replies: 6
Views: 87
Posted By 1sbedx
Re: Como eu faço isso?

Não tem como.
Forum: Português/Portuguese 13/07/2020, 10:17 PM
Replies: 16
Views: 284
Posted By 1sbedx
Re: Me Ensinem A Salvar Dados... Dini ou DOF2

Isso não pode ser sério. KKKK
Forum: Scripting Help 13/07/2020, 02:19 PM
Replies: 4
Views: 91
Posted By 1sbedx
Re: Please Check My Upgrade EXP

while (PlayerInfo[playerid][pEXP] >= (PlayerInfo[playerid][pLevel] == 1 ? 500 : 1000 * (PlayerInfo[playerid][pLevel] - 1))) {
PlayerInfo[playerid][pEXP] -= PlayerInfo[playerid][pLevel] == 1 ? 500...
Forum: Português/Portuguese 11/07/2020, 11:06 PM
Replies: 5
Views: 140
Posted By 1sbedx
Re: Veiculos Emprego

enum _: EMPREGOS {
CAMINHONEIRO = 1,
TAXISTA,
MECANICO,
IFOOD
};

static const Empregos[][32 + 1] = {
"Caminhoneiro",
"Taxista",
Forum: Português/Portuguese 11/07/2020, 08:59 PM
Replies: 5
Views: 140
Posted By 1sbedx
Re: Veiculos Emprego

CaminhoneiroCar(car) {
for (new i; i < sizeof(CarrosCaminhoneiro); i++) {
if (car == CarrosCaminhoneiro[i]) {
return true;
}
}
return false;
}

public...
Forum: Português/Portuguese 11/07/2020, 03:54 PM
Replies: 7
Views: 169
Posted By 1sbedx
Re: Quando o player logar

Timestamp (https://pt.wikipedia.org/wiki/Marca_temporal)
Forum: Scripting Help 10/07/2020, 04:53 PM
Replies: 3
Views: 158
Posted By 1sbedx
Re: Textdraw Font Name

0. Aharoni Bold
1. Diploma/Beckett Regular
2. Bank Gothic
3. Pricedown

https://gta.fandom.com/wiki/Fonts
Forum: Scripting Help 09/07/2020, 01:11 PM
Replies: 8
Views: 223
Posted By 1sbedx
Re: About difference

https://forum.sa-mp.com/showthread.php?t=480529
Forum: Scripting Help 07/07/2020, 09:13 PM
Replies: 2
Views: 124
Posted By 1sbedx
Re: stock GetDoorState(doorStates, Door:door, DoorState:doorState) Issue.

return (doorStates >>> (8 * _:door)) & _:doorState;
Forum: Português/Portuguese 06/07/2020, 02:18 PM
Replies: 2
[Ajuda] carros orgs
Views: 103
Posted By 1sbedx
Re: carros orgs

enum _: ORGS {
ORG_NONE,
ORG_BALLAS
// ...
};

new PlayerOrg[MAX_PLAYERS];
new VehicleOrg[MAX_VEHICLES];

public OnGameModeInit() {
Forum: Scripting Help 06/07/2020, 02:04 AM
Replies: 2
Views: 102
Posted By 1sbedx
Re: How do I stock texts?

https://wiki.sa-mp.com/wiki/Scripting_Basics#Arrays


new const Texts[][] = {
"Text1",
"Text2",
"Text3",
"Text4"
};
Forum: Português/Portuguese 04/07/2020, 07:59 PM
Replies: 17
[Ajuda] Tags
Views: 306
Posted By 1sbedx
Re: Tags

new PlayerTag[MAX_PLAYERS][16];
new Text3D: PlayerTag3DText[MAX_PLAYERS] = { Text3D: INVALID_3DTEXT_ID, ... };

public OnPlayerConnect(playerid) {
PlayerTag[playerid][0] = EOS;
...
Forum: Português/Portuguese 04/07/2020, 04:08 PM
Replies: 14
Views: 294
Posted By 1sbedx
Re: Tag em cima do Nick

new Text3D: PlayerTag3DText[MAX_PLAYERS] = { Text3D: INVALID_3DTEXT_ID, ... };

public OnPlayerConnect(playerid) {
PlayerTag3DText[playerid] = Text3D: INVALID_3DTEXT_ID;
return 1;
}
...
Forum: Português/Portuguese 03/07/2020, 01:45 PM
Replies: 4
[Ajuda] Bug gangzones
Views: 132
Posted By 1sbedx
Re: Bug gangzones

public OnPlayerSpawn(playerid) {
GangZoneShowForPlayer(playerid, GangZoneCreate(1086.8125, -2066.666503, 1282.8125, -1997.0), 0xFFFF0080);
}

https://i.imgur.com/e2OHw26.png
Forum: Português/Portuguese 03/07/2020, 01:15 PM
Replies: 4
[Ajuda] Bug gangzones
Views: 132
Posted By 1sbedx
Re: Bug gangzones

Pegou mesmo as coordenadas certas?

public OnPlayerSpawn(playerid) {
GangZoneShowForPlayer(playerid, GangZoneCreate(930.221008, -2488.419921, 1249.619995, -2006.780029), 0xFFFF0080);
}
...
Forum: Includes 01/07/2020, 09:30 PM
Replies: 50
Views: 16,954
Posted By 1sbedx
Re: Admin System - admin system with many features

You're right.



You used this to "explain" why you used timers instead of gettime.



And... I just pointed out the fact that yes, you can also do it using gettime.
Forum: Includes 01/07/2020, 12:40 PM
Replies: 50
Views: 16,954
Posted By 1sbedx
Re: Admin System - admin system with many features

You can do this with gettime as well. (much easier and simpler)


new PlayerMuteTime[MAX_PLAYERS];

MutePlayer(playerid, seconds) {
PlayerMuteTime[playerid] = gettime() + _: (!seconds ?...
Forum: Português/Portuguese 27/06/2020, 02:44 AM
Replies: 4
Views: 163
Posted By 1sbedx
Re: Trocar comando por uma tecla.

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


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
// N
if (newkeys & KEY_NO) {
// ...
}
}
Forum: Scripting Help 26/06/2020, 09:38 PM
Replies: 9
Views: 199
Posted By 1sbedx
Re: Anti flood button

GetPlayerClosestHouse(playerid) {
for (new i = 1; i <= sizeof(houses); i++) {
if (IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[i][chPosX], HouseInfo[i][chPosY], HouseInfo[i][chPosZ])) return...
Forum: Português/Portuguese 26/06/2020, 11:09 AM
Replies: 2
[Ajuda] Dúvida SQLite
Views: 125
Posted By 1sbedx
Re: Dúvida SQLite

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

https://i.imgur.com/cCdc1HW.png
Forum: Português/Portuguese 21/06/2020, 11:02 PM
Replies: 4
[Pedido] Placa de Veiculo
Views: 149
Posted By 1sbedx
Re: Placa de Veiculo

new Placa[MAX_VEHICLES][32];

main() {
new path[18];

for (new i = MAX_VEHICLES; --i != 0; ) {
format(Placa[i], 32, "Placa-%04i", i);

if (!DOF2_FileExists((format(path,...
Forum: Português/Portuguese 17/06/2020, 06:22 PM
Replies: 1
Views: 97
Posted By 1sbedx
Re: Alterar velocidade do veiculo

bool: SetVehicleSpeed(vehicleid, Float: speed) {
new Float: x, Float: y, Float: z;

if (!GetVehicleVelocity(vehicleid, x, y, z)) {
return false;
}

new Float: ang;

...
Forum: Português/Portuguese 17/06/2020, 12:25 AM
Replies: 1
Views: 85
Posted By 1sbedx
Re: Buga ao pegar a arma

stock SalvarIventario(playerid) {
new path[35], name[MAX_PLAYER_NAME];
format(path, sizeof(path), "Arsenal/%s.ini", (GetPlayerName(playerid, name, MAX_PLAYER_NAME), name));
if...
Forum: Português/Portuguese 14/06/2020, 02:44 PM
Replies: 4
Views: 171
Posted By 1sbedx
Re: Salvamento em dini

Você precisa criar uma pasta chamada Skins dentro da pasta scriptfiles, você fez isso?
Showing results 1 to 25 of 352

 

All times are GMT. The time now is 09:05 AM.


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