| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,652
» Latest member: remus
» Forum threads: 2,346
» Forum posts: 12,286
Full Statistics
|
| Online Users |
There are currently 175 online users. » 0 Member(s) | 172 Guest(s) Baidu, Yandex, Bing
|
| Latest Threads |
Ultimate Roleplay!!
Forum: Advertisements
Last Post: URP_Wrzosek
Today, 05:22 AM
» Replies: 1
» Views: 18
|
samp openmp scripts
Forum: German/Deutsch
Last Post: pauli
Yesterday, 01:21 AM
» Replies: 0
» Views: 45
|
YGG-Reborn
Forum: Advertisements
Last Post: Mw10
2025-10-31, 08:12 AM
» Replies: 0
» Views: 44
|
[GameMode] Brasil Vida Id...
Forum: Portuguese/Portugu?s
Last Post: Brasil Vida Ideal
2025-10-31, 01:12 AM
» Replies: 0
» Views: 39
|
Grand Gang War (GGW)
Forum: Advertisements
Last Post: coladaciren
2025-10-30, 10:00 AM
» Replies: 0
» Views: 41
|
undefined symbol
Forum: Portuguese/Portugu?s
Last Post: leobradoks
2025-10-25, 08:58 PM
» Replies: 1
» Views: 1,611
|
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 87
|
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,316
|
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 147
|
SARP Gamemode
Forum: Releases
Last Post: Bilal
2025-10-21, 12:58 PM
» Replies: 0
» Views: 92
|
|
|
| Take the angle of a position |
|
Posted by: Marllun - 2021-02-26, 03:10 PM - Forum: Pawn Scripting
- Replies (5)
|
 |
I would like to know how I get the angle of an X, Y,?Z coordinate, To use for example in the function SetPlayerFacingAngle
Example:
stock Float:GetAnglePos(Float:x, Float:y, Float:z) {
?Code..
return angle;
}
|
|
|
|
| How does one make a top5? |
|
Posted by: Z3fRaN - 2021-02-26, 01:37 AM - Forum: Pawn Scripting
- Replies (10)
|
 |
I don't have a good idea on how to make a top5 all time it, only thing I can think of is for(i=0;i<MAX_PLAYERS;i) but don't know how to continue the rest.
|
|
|
|
AFK Damage |
|
Posted by: Lord_Bukake - 2021-02-24, 04:57 PM - Forum: Pawn Scripting
- Replies (5)
|
 |
Hi everyone, how can I hurt a player who is in afk?
I have seen this system on other servers but have no idea how to program it.
Could you help me please, thanks.
|
|
|
|
| help with this pls |
|
Posted by: Nicolas_Belic - 2021-02-23, 11:29 PM - Forum: Pawn Scripting
- Replies (7)
|
 |
Code: CMD:id(playerid, params[]) {
? ? if (sscanf(params, "u", params[0])) return SendClientMessage(playerid, -1, "{D41818}[COMMAND]{AFAFAF} /id <nick>");
? ? if (!IsPlayerConnected(params[0])) return SendClientMessage(playerid, -1, "{D41818}[ERROR]{AFAFAF} Player not found");
? ? new string[128];
? ? new name[MAX_PLAYER_NAME];
? ? GetPlayerName(playerid, name, sizeof(name));
? ? format(string, sizeof(string), "%d - [ID]:%s", params[0], name);
? ? SendClientMessage(playerid, 0x969696FF, string);
? ? return 1;
}
my idea is to make a command so that when you put / id and the name of the player you can receive the ID of the player
|
|
|
|
Random Player |
|
Posted by: Lord_Bukake - 2021-02-23, 04:42 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hi, how can i randomly select a player and have it run once per game?
i have a TDM server for rounds and i need it to run only once per game
This is my code:
Code: new ran = random(GetPlayerPoolSize());
loop_start:
if(!IsPlayerConnected(ran))
{
? ? ran = random(GetPlayerPoolSize());
? ? goto loop_start;
}
printf("player found");
printf("%d",ran);
if(team[ran] == TEAM_GREEN)SpawnPlayer(ran);
GetPlayerPos(ran, xpo, ypo, zpo);
The problem is that it runs more than once, can you help me please?, thanks
|
|
|
|
| Openmp status |
|
Posted by: RhaegarX - 2021-02-23, 01:06 PM - Forum: Questions and Suggestions
- Replies (1)
|
 |
Hello, it's been a few months since the latest information on the development situation of openmp. does anyone know how to inform the development of the project? are we close to maybe having a public beta?
|
|
|
|
| command-guess |
|
Posted by: Tama - 2021-02-23, 10:55 AM - Forum: Libraries
- Replies (1)
|
 |
command-guess
A guesser command who uses levenshtein distance algoritm written in pawn.
Now it's support ZCMD-like command processor!
Maybe if you want this to?support more command processor, just make an issue on my github?and i'll figure it out.
Usage:
PHP Code: #include <a_samp> #include <izcmd> #include <command-guess>
main() { ? ? print("Script loaded"); } public OnPlayerCommandPerformed(playerid, cmdtext[], success) { ? ? if (!success) { ? ? ? ? new ? ? ? ? ? ? guessCmd[32];
? ? ? ? CommandGuess(guessCmd, cmdtext);
? ? ? ? SendClientMessageEx(playerid, -1, "{FF0000}ERROR:{FFFFFF} \"%s\" is not found, did you mean \"%s\"?", cmdtext, guessCmd); ? ? ? ? return 1; ? ? } ? ? return 1; }
Downloads:
GitHub Release
|
|
|
|
| Top en 2d |
|
Posted by: Hitler - 2021-02-23, 02:09 AM - Forum: Pawn Scripting
- Replies (6)
|
 |
Espa?ol: ya tengo una funci?n que muestra a los 5 mejores top score, pero como lo hago para hacerlo en un texto 2d?
English: I already have a function that shows the top 5 scores, but how do I do it in a 2d text?
Code: CMD:top(playerid)
{
mysql_pquery(con, "SELECT `Nombre`, `Score` FROM `usuarios` WHERE `Score` > 0 ORDER BY `Score` DESC LIMIT 5", "MejoresScore", "d", playerid);
return 1;
}
funcion MejoresScore(playerid)
{
new rows = cache_num_rows(),string[300],Escore,nameplayer[MAX_PLAYER_NAME];
if(rows > 0)
{
string = "{FFFFFF}Lista 5?mejores Scores\n\n";
for(new i=0; i<rows; i)
{
cache_get_value_name_int(i, "Score", Escore);
cache_get_value_name(i, "Nombre", nameplayer, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s#%d\t%s? %d Score\n",string,i,nameplayer,Escore);
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Top Scores", string, "Cerrar", "");
}
return 1;
}
como as?:? https://imgur.com/SO3F1Fj
|
|
|
|
| [Help] Duelos |
|
Posted by: Hitler - 2021-02-22, 11:39 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Espa?ol: Hola buenas, tengo un problema con los Duelos y es que como hago para que los jugadores est?n en el mismo Virtual World y que si otros jugadores duelan en la misma arena que no coincidan el virtual world con los otros jugadores, no se si yo estoy explicando bien
[c?digo] SetPlayerVirtualWorld (id1, 1);
SetPlayerVirtualWorld (id2, 1); [/ c?digo]
|
|
|
|
|