Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,887
» Latest member: falambons101
» Forum threads: 2,393
» Forum posts: 12,300

Full Statistics

Online Users
There are currently 359 online users.
» 0 Member(s) | 356 Guest(s)
Bing, Google, Applebot

Latest Threads
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2026-01-27, 08:48 PM
» Replies: 11
» Views: 18,950
problema afisare dialog c...
Forum: Romanian/Rom?na
Last Post: rcst3phan
2026-01-27, 07:31 PM
» Replies: 0
» Views: 30
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: rcst3phan
2026-01-27, 07:30 PM
» Replies: 0
» Views: 24
Verona Community opening
Forum: Advertisements
Last Post: pmemorex2016
2026-01-27, 07:01 AM
» Replies: 0
» Views: 26
Verona Community otvaranj...
Forum: Ex-Yu
Last Post: pmemorex2016
2026-01-27, 06:59 AM
» Replies: 0
» Views: 36
Animated Textdraws
Forum: Libraries
Last Post: Crazy_ArKzX
2026-01-26, 08:26 PM
» Replies: 0
» Views: 34
Textdraw Animada
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2026-01-26, 08:23 PM
» Replies: 0
» Views: 30
Textdraw Editor Mobile - ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2026-01-26, 08:21 PM
» Replies: 0
» Views: 18
Il reste des français sur...
Forum: French/Fran?ais
Last Post: Lionel62300
2026-01-26, 03:20 PM
» Replies: 3
» Views: 3,938
Redturbo's Team Death Mat...
Forum: Advertisements
Last Post: Bright
2026-01-25, 12:36 PM
» Replies: 0
» Views: 62

 
  Help with enter and exiting an interior
Posted by: XDK6 - 2021-06-28, 03:05 AM - Forum: Pawn Scripting - No Replies

Hello Burgershot Community,



I have a problem with my 3dtext label and exiting a property on my script. Whenever I exit the property it tp me to the first 24/7 store that I created instead of the new one.



here is the code I use on creating a property system with printing the ids on 3d text label



variables and enums:



Code:
#define MAX_STORES 500



enum sInfo

{

sID,

sType,

Text3D:sLabel,

sName[50],

sMapIcon,

sPickup,

Float:sX,

Float:sY,

Float:sZ,

sInt,

sVirt,

Float:intsX,

Float:intsY,

Float:intsZ,

sintInt,

sintVirt,

bool:sIDUsed

};



new storeinfo[MAX_STORES][sInfo];

new TotalStores;



Code for creating the store

Code:
createstore(storeid, type, Float:X, Float:Y, Float:Z, Float:IntX, Float:IntY, Float:IntZ, intInt, intVirt)

{

TotalStores;

storeinfo[storeid][sID] = storeid;

storeinfo[storeid][sX] = X;

storeinfo[storeid][sY] = Y;

storeinfo[storeid][sZ] = Z;

storeinfo[storeid][sInt] = 0;

storeinfo[storeid][sVirt] = 0;

storeinfo[storeid][intsX] = IntX;

storeinfo[storeid][intsY] = IntY;

storeinfo[storeid][intsZ] = IntZ;

storeinfo[storeid][sintInt] = intInt;

storeinfo[storeid][sintVirt] = intVirt;

intVirt = storeinfo[storeid][sID];

storeinfo[storeid][sIDUsed] = true;



storeinfo[storeid][sPickup] = CreateDynamicPickup(1272, 1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 0);



storeinfo[storeid][sType] = type;

new string2[128];

if(storeinfo[storeid][sType] == 1)

{

format(string2, sizeof(string2), "24/7 (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 17, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 2)

{

format(string2, sizeof(string2), "Burgershot (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 10, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 3)

{

format(string2, sizeof(string2), "Cluckin Bell (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 14, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 4)

{

format(string2, sizeof(string2), "Well Stacked Pizza Co. (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 29, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 5)

{

format(string2, sizeof(string2), "Binco (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 45, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 6)

{

format(string2, sizeof(string2), "Zip (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 45, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 7)

{

format(string2, sizeof(string2), "Pro-Laps (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 45, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 8)

{

format(string2, sizeof(string2), "Suburban (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 45, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

if(storeinfo[storeid][sType] == 9)

{

format(string2, sizeof(string2), "Didier Sachs (ID:%d)", storeinfo[storeid][sName], storeinfo[storeid][sID]);

? ? ? ? storeinfo[storeid][sLabel] = Create3DTextLabel(string2, -1, storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 30.0, storeinfo[storeid][sVirt]);

for(new i = 0; i < MAX_PLAYERS; i)

? ? {

storeinfo[storeid][sMapIcon] = CreateDynamicMapIcon(storeinfo[storeid][sX], storeinfo[storeid][sY], storeinfo[storeid][sZ], 45, 1, 0, 0, i, 300, MAPICON_LOCAL);

}

}

new string[128];

format(string, sizeof(string), "Store ID: %d has been created. Total Stores: %d", storeid, TotalStores);

printf(string);

}



Enter and Exit code:



Code:
stock SendPlayerInsideStore(playerid, storeid)

{

if(storeid == MAX_STORES) return 0;

new Float:X = storeinfo[storeid][intsX], Float:Y = storeinfo[storeid][intsY], Float:Z = storeinfo[storeid][intsZ], Int = storeinfo[storeid][sintInt], Virt = storeinfo[storeid][sID];

SetPlayerPos(playerid, X, Y, Z);

SetPlayerInterior(playerid, Int);

SetPlayerVirtualWorld(playerid, Virt);

return 1;

}



stock SendPlayerOutsideStore(playerid, storeid)

{

if(storeid != MAX_STORES)

{

? ? ? ? new Float:X = storeinfo[storeid][sX], Float:Y = storeinfo[storeid][sY], Float:Z = storeinfo[storeid][sZ], Int = storeinfo[storeid][sInt];

SetPlayerPos(playerid, X, Y, Z);

SetPlayerInterior(playerid, Int);

SetPlayerVirtualWorld(playerid, 0);

}

else return 0;

return 1;

}


  How to make pasword validation?
Posted by: CrypticSin - 2021-06-27, 02:48 PM - Forum: Pawn Scripting - Replies (2)

Hello i need help with?password validation, so if registered user types wrong password more than 3 times to login, it should kick the user?



PHP Code:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])

{

? ? if(
dialogid == REGISTER_DIALOG)

? ? {

? ? ? ? if(
response)

? ? ? ? {

? ? ? ? ? ? if(
strlen(inputtext) < || strlen(inputtext) > 24)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? 
SendClientMessage(playerid, -1"SERVER: Your password must be from 3-24 characters.");

? ? ? ? ? ? ? ? return 
ShowPlayerDialog(playeridREGISTER_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}Register Account""{FFFFFF}Please enter a password below to register an account:""Enter""Leave");

? ? ? ? ? ? }

? ? ? ? 

? ? ? ? ? ? 
bcrypt_hash(playerid"OnPlayerRegister"inputtext12);

? ? ? ? ? ? return 
1;

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? 
Kick(playerid);

? ? ? ? }

? ? }

? ? else if(
dialogid == LOGIN_DIALOG)

? ? {

? ? ? ? if(
response)

? ? ? ? {

? ? ? ? ? ? new 
query[256], field[64];

? ? ? ? ? ? 
format(querysizeof(query), "SELECT `PASS` FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE"DB_Escape(ReturnName(playerid)));

? ? ? ? ? ? 
database_result db_query(server_databasequery);

? ? ? ? ? ? ? if(
db_num_rows(database_result))

? ? ? ? ? ? {

? ? ? ? ? ? ? ? 
db_get_field_assoc(database_result"PASS"fieldsizeof(field));

? ? ? ? ? ? ? ? ? 
bcrypt_verify(playerid"OnPlayerLogin"inputtextfield);

? ? ? ? ? ? }

? ? ? ? ? ? return 
1;

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? 
Kick(playerid);

? ? ? ? }

? ? }

? ? return 
1;



Rainbow SCM()
Posted by: Awide - 2021-06-27, 09:46 AM - Forum: Programming - Replies (4)

jokes on you all haters i use SCM to split long messages?



*grabs popcorn*


  How to tell user if they are registered or not?
Posted by: CrypticSin - 2021-06-26, 11:14 AM - Forum: Pawn Scripting - Replies (1)

I've got a login and registration system which works using SQLlite.



Im trying to let the server tell the player whether they are registered or not?



So if they are already registered the server should say?"Welcome back 'player' You are already registered on the server please log in to continue." By returning the playername.



But if they are not registered it should prompt the user with "The 'username' is not registered on this server."



PHP Code:
public OnPlayerConnect(playerid)

{

SetPlayerCamera(playerid);

? ? 
SetPlayerScore(playerid0);

? ? 

? ? 
PlayerInfo[playerid][pKills] = 0;

PlayerInfo[playerid][pDeaths] = 0;



PlayerInfo[playerid][pLoggedIn] = false;



new 
query[128];

format(querysizeof(query), "SELECT `NAME` FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE"DB_Escape(ReturnName(playerid)));

database_result db_query(server_databasequery);

? if(
db_num_rows(database_result))

{

// Registered accounts see this login

ShowPlayerDialog(playeridLOGIN_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}TWDZS: Account Login""{FFFFFF}Please enter your password below to login to your account:""Enter""Leave"); 

}

else

{

ShowPlayerDialog(playeridREGISTER_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}TWDZS: Register Account""Please enter a strong password to register your account""Register""Cancel");

}

return 
1;





  Fix delay in loading vehicles and objects when you leave from an interior
Posted by: Radical - 2021-06-25, 06:00 AM - Forum: Questions and Suggestions - No Replies

Well, when you leave from an interior (shops or?houses)?

It?take some time (5-8?seconds) to loading near vehicles and objects.


  How can I make players invincible?
Posted by: XDK6 - 2021-06-25, 03:38 AM - Forum: Pawn Scripting - Replies (3)

Hello guys! I'm a newbie scripter. I needd help how to make a playerid invincible.


  Pawn Coders - Discord server advertisement
Posted by: Connoisseur - 2021-06-24, 06:53 PM - Forum: General Discussions - Replies (2)

Pawn Coders is officially created by Portuguese/Spanish PAWN developers and is a place where people can request help, find useful resources, or even release one of their own. The idea came from one of the desires, helping. To wrap everything up, and save you from pointless numerous words, we are almost the same community, but now officially created in English that want to expand, and help the ones that need it.



Join now!

->?https://discord.com/invite/WJmygWFmtt



Current partner(s):

->?https://discord.gg/Dd8jKyQdq3


Information How are the laws out there?
Posted by: Otakeiro - 2021-06-24, 01:19 PM - Forum: Life - No Replies

Ultimamente nossos policiais est?o sofrendo correndo atr?s de L?zaro (400 soldados atr?s de 1 pessoa), eles cercaram a ?rea e ainda n?o pegaram o infeliz.



Ele estava na pris?o, tinha direito a uma "pequena sa?da" (algo como: voc? est? livre por um tempo, fuja)



Pior, eles desarmaram a sociedade (mas n?o os bandidos), n?o temos pris?o perp?tua e as leis que temos n?o o mant?m na pris?o.



L?zaro est? 16 dias no mato, mais de 400 policiais incluindo c?es de ca?a e boa tecnologia e quando pego pode pegar no m?ximo 4 anos de pris?o por assassinato em s?rie



Se isso acontecesse l?, a lei seria t?o frouxa quanto no Brasil?


  Dark forum style
Posted by: Awide - 2021-06-23, 09:53 PM - Forum: Questions and Suggestions - Replies (2)

Could you add a dark forum style? It could even be a default MyBB style as well, just to avoid mosquitoes raiding our monitor.


  Extended vehicle rotation
Posted by: Otakeiro - 2021-06-23, 08:01 PM - Forum: Pawn Scripting - Replies (2)

Solved...