| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 526 online users. » 0 Member(s) | 522 Guest(s) Bing, Yandex, Baidu, Google
|
| Latest Threads |
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 07:16 PM
» Replies: 4
» Views: 729
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 11:26 AM
» Replies: 2
» Views: 369
|
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
2025-12-12, 04:57 PM
» Replies: 0
» Views: 39
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-12-12, 03:29 PM
» Replies: 0
» Views: 23
|
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 39
|
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 179
|
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 238
|
Zona América del Sur DM+ ...
Forum: Advertisements
Last Post: kevinberriosflores
2025-12-05, 10:59 PM
» Replies: 0
» Views: 72
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-05, 02:06 PM
» Replies: 0
» Views: 130
|
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 120
|
|
|
| Script is taking opposite value. |
|
Posted by: Axitz - 2021-04-05, 01:23 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hi again,
When I tried to get the nearest unlocked house, it shows unknown command but when I closed the house, it does work but it was opposite of what I want.
Command I make to test the system
PHP Code: COMMAND:testhouse(playerid, params[]) { ? ? //GetClosestHouse ? ? new iClosest = GetClosestHouse(playerid); SetPlayerCheckpoint(playerid, House[iClosest][House_x], House[iClosest][House_y], House[iClosest][House_z], 3.0); SendClientInfo(playerid, "Marker set to the closest house."); return 1; }
Function
PHP Code: stock GetClosestHouse(playerid) { new ? ? cl_ID = -1, Float:cl_DIST = 9999.0;
for(new i=1, l=MAX_HOUSES; i != l; i) { ? ? if(House[i][locked] != 1) continue; if( GetPlayerDistanceToPointEx(playerid, House[i][House_x],? House[i][House_y], House[i][House_z]) < cl_DIST ) { ? ? cl_ID = i; ? ? cl_DIST = GetPlayerDistanceToPointEx(playerid, House[i][House_x],House[i][House_y],House[i][House_z]); } } return cl_ID; }
|
|
|
|
| Skins won't get changed. |
|
Posted by: Axitz - 2021-04-05, 05:37 AM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hi,
I'm not sure whats wrong with it. I tried multiple ways to fix this problem but it keep sending me same messages.
It compiled without errors and warnings.
Whenever this system trigged on my server, it keep changing the skin to CJ skins not the one I set in [FSkins1].
PHP Code: if(PlayerInfo[playerid][playerteam] == faction1 || PlayerInfo[playerid][playerteam] == faction2) { ? ? ? ? ? ? ?new teami = maskid[playerid]; ? ? ? ? ? ? SetPlayerTeam(playerid, teami); ? ? ? ? ? ? playerwarinv[playerid] = 1; ? ? ? ? ? ? inv_timer[playerid] = SetTimerEx("killinv", 179000, false, "i", playerid); ? ? ? ? ? ? if(iTier != FactionInfo[playerid][FSkin1]) ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ?//new warskin = FactionInfo[playerid][FSkin1]; SendClientError(playerid, "Your skin has been changed because you don't have current faction ones."); ? ? ? ? ? ? ? ? ?SetPlayerSkin(playerid, FactionInfo[playerid][FSkin1]); ? ? ? ? ? ? ? ? ?PlayerInfo[playerid][Skin] = FactionInfo[playerid][FSkin1]; ? ? ? ? ? ? ?} }
|
|
|
|
| [FIXED] What is Meaning udb_hash ? |
|
Posted by: PutuSuhartawan - 2021-04-05, 02:25 AM - Forum: Pawn Scripting
- Replies (1)
|
 |
stock?udb_hash(buf[])?{
????new?length=strlen(buf);
????new?s1?=?1;
????new?s2?=?0;
????new?n;
????for?(n=0;?n<length;?n)
????{
???????s1?=?(s1??buf[n])?%?65521;
???????s2?=?(s2??s1)?????%?65521;
????}
????return?(s2?<<?16)??s1;
}?
|
|
|
|
| BIG TETRIS & ZERO's TETRIS |
|
Posted by: Name - 2021-04-04, 07:02 PM - Forum: Videos and Screenshots
- No Replies
|
 |
_____________________________________________________________________________________________________________________________________________________________
page 1
Name: Tetris
Map type: Exterior
Author of map: MrName (me)
Number of objects: 265
Number of textures: 262 and 16 texts
Removed SA objects: 0
Custom objects: 0
Location of map: Easter basin, San Fierro
Map editor used: MSR's mapping system
Reference: Tetris?
About map: Huge tetris object on Easter Basin's ship, ships was already there, added tetris and tetris blocks on top and near ship.
Screenshots:
page 1
_______________________________________________________________________________________________________________________________________________________________________________________
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________
page 2
Name: Zero's tetris
Map type: Exterior
Author of map: MrName (me)
Number of objects: 183
Number of textures: 175
Removed SA objects: 0
Custom objects: 0
Location of map: Garcia, San Fierro
Map editor used: MSR's mapping system
Reference: Tetris game
About map: Tetris blocks with realistic crane on top of the building near Zero's place. Crane is placing top tetris blocks on lower rooftop.
Screenshots:
page 2
_______________________________________________________________________________________________________________________________________________________________________________________
|
|
|
|
| How to save the position/skin of the player after exiting? |
|
Posted by: CrypticSin - 2021-04-03, 10:06 PM - Forum: Pawn Scripting
- Replies (10)
|
 |
Hi, im currently scripting a server and i want to know how a players progress is saved on the server??
So for example, when the user selects their skin i want the player to keep their skin until they decide to change it manually,?instead of the skin selection appearing everytime someone logs in.
Also how do you save the position of a player when they exit the game? and when they log back?back in it should log the user back to the same posiiton they exited?
What are the areas in the SAMP-wiki should i look into to make something like this?
|
|
|
|
| Login and registration without pressing spawn |
|
Posted by: YowlsGazZ - 2021-04-01, 06:46 AM - Forum: Support
- Replies (3)
|
 |
[English] Good morning / afternoon / evening
Friends, today I have a question, which has invaded me a while ago, and it is how I can make the users who enter my server, either by logging in or registering, do so without pressing the "Spawn" box.
[i]PS: Your support is always appreciated[/i]
[Spanish]?Buen@s d?as/tardes/noches
amigos, hoy tengo una pregunta, la cual me ha invadido hace un tiempo, y es como puedo hacer que los usuarios que entren en mi servidor, ya sea logeando o registrandose lo hagan sin necesidad de presionar el recuadro de "Spawn".
PD: Siempre se agradece su apoyo :3
|
|
|
|
|