| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 179 online users. » 0 Member(s) | 176 Guest(s) Yandex, Google, Bing
|
| Latest Threads |
SA-MP Bedwars (2026)
Forum: Advertisements
Last Post: Amjad
2026-06-23, 08:52 AM
» Replies: 0
» Views: 40
|
libsamp - samp.dll re-imp...
Forum: Programming
Last Post: Knogle
2026-06-22, 09:21 PM
» Replies: 0
» Views: 51
|
[Lançamento] Spawn — IDE ...
Forum: Portuguese/Português
Last Post: Daniil Korochansky
2026-06-22, 01:25 PM
» Replies: 0
» Views: 42
|
PawnPro 3.3.0 Released
Forum: Releases
Last Post: NullSablex
2026-06-21, 09:25 AM
» Replies: 0
» Views: 57
|
Introducing PST — A Commu...
Forum: Pawn Scripting
Last Post: Daniil Korochansky
2026-06-20, 04:14 PM
» Replies: 0
» Views: 62
|
FCNPC for open.mp - the c...
Forum: Plugins
Last Post: MauroRisi
2026-06-20, 12:28 AM
» Replies: 2
» Views: 225
|
omp_npc not working
Forum: Pawn Scripting
Last Post: MauroRisi
2026-06-20, 12:13 AM
» Replies: 0
» Views: 44
|
[Release] Spawn — IDE for...
Forum: Programming
Last Post: Daniil Korochansky
2026-06-16, 05:41 AM
» Replies: 1
» Views: 120
|
discord unban appeal - pa...
Forum: Chat
Last Post: edgy
2026-06-15, 01:50 PM
» Replies: 1
» Views: 145
|
🎮 [91.134.166.72:5555] Jo...
Forum: Advertisements
Last Post: tokofridonashvili_01
2026-06-14, 05:39 PM
» Replies: 0
» Views: 82
|
|
|
| HELP! How to Change RP name return chat remove underline OnPlayerText but return 0 ? |
|
Posted by: PutuSuhartawan - 2021-04-22, 10:50 AM - Forum: Pawn Scripting
- Replies (7)
|
 |
Code: public OnPlayerText(playerid, text[])
{
? //new AdaSays[90];
// format(AdaSays, sizeof(AdaSays), ""COL_WHITE"Says: %s", text);
// ProcessChatText(playerid, AdaSays);
? //TalkMessage(ACTION_DISTANCE, playerid, "", text);
? SEM(playerid, ""COL_RED"DEBUG: "COL_WHITE"message text example");
? new string[228];
? format(string, sizeof(string), "%s says: %s", GetRPName(playerid), text);
? CloseMessage(playerid, COLOR_WHITE, string);
? //format(string, sizeof(string), "%s says: %s", GetRPName(playerid), text);
//Log("logs/chatlogplayer.log", string);
? format(string,sizeof(string),"%s", text);
? SetPlayerChatBubble( playerid, string,0xFFFFFFFF,20.0,5500);
? return 1;
}
|
|
|
|
| How to get the exacly pos where a bomb drops? |
|
Posted by: annety - 2021-04-20, 06:03 AM - Forum: Support
- Replies (4)
|
 |
I want to make a server with a good PvP like CS-GO
For that i need to make good granades: like smoke,flash,molotov
The effect i can manage to do by using textdraws, create explosion, drunk effect...
But there is only a thing i need someone with more expirience to help me:
How to get the exacly position where bombs when players throw?
To create that flashbang,smoke,molotov effect...
How to get it?
|
|
|
|
| GPS Like GTA 4? |
|
Posted by: Boxi - 2021-04-20, 03:20 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
I would like to know is there any way to make this style of gps, which is marked on the map the path to follow as seen in the image:?
|
|
|
|
| Special Vehicle |
|
Posted by: AbyssMorgan - 2021-04-19, 04:24 PM - Forum: Filterscripts
- No Replies
|
 |
Video:
Full presentation is unavailable sorry
Shoft videos:
- SpecialVehicle #1
- SpecialVehicle #2
Screenshots:
https://imgur.com/a/aNOUwfn
Functions:
Code: SpecialVehicle::IsToggledSpecialAbility(vehicleid);
SpecialVehicle::ToggleSpecialAbility(vehicleid,bool:toggle);
SpecialVehicle::GetSpecialVehicleHealth(vehicleid);
SpecialVehicle::SetDefaultDamage(vehicleid);
SpecialVehicle::EnterPlayer(playerid);
SpecialVehicle::ExitPlayer(playerid);
SpecialVehicle::IsPlayerInSpecialVeh(playerid);
SpecialVehicle::GetPlayerSpecialVehType(playerid);
SpecialVehicle::GetVehicleAmmo(vehicleid);
SpecialVehicle::SetVehicleAmmo(vehicleid,ammo);
SpecialVehicle::GetVehicleSecondaryAmmo(vehicleid);
SpecialVehicle::SetVehicleSecondaryAmmo(vehicleid,ammo);
SpecialVehicle::GetDamage(vehicleid);
SpecialVehicle::SetDamage(vehicleid,Float:damage);
SpecialVehicle::GetVehicleDamage(vehicleid);
SpecialVehicle::SetVehicleDamage(vehicleid,Float:vehicle_damage);
SpecialVehicle::IsToggledTrunkInterior();
SpecialVehicle::ToggleTrunkInterior(bool:toggle);
SpecialVehicle::IsToggledTrailerInterior();
SpecialVehicle::ToggleTrailerInterior(bool:toggle);
SpecialVehicle::IsToggledMaverickMinigun(vehicleid);
SpecialVehicle::ToggleMaverickMinigun(vehicleid,bool:toggle);
SpecialVehicle::Create(modelid,Float:x,Float:y,Float:z,Float:angle,color1,color2,respawn_delay = -1,addsiren = 0,worldid = 0,interiorid = 0);
SpecialVehicle::CreateMOC(Float:x,Float:y,Float:z,Float:z_angle,respawn_delay = -1,addsiren = 0,worldid = 0,interiorid = 0);
SpecialVehicle::CreateMOCIncluded(vehicleid,respawn_delay = -1,addsiren = 0);
Callbacks:
Code: OnPlayerEnterVehIntRequest(playerid,vehicleid);
OnPlayerEnterSpecialSeat(playerid);
OnPlayerEnterOppressor(playerid);
OnPlayerUseCannonFail(playerid);
OnPlayerShootRocketFail(playerid);
OnSpecialTrailerNotConnected(playerid);
OnPlayerShootOPRocketFail(playerid);
OnPlayerEnterVehInterior(playerid,vehicleid,with_vehicle);
OnPlayerExitVehInterior(playerid,vehicleid,with_vehicle);
OnSpecialVehicleHasNoAmmo(playerid,vehicleid);
OnSpecialTrailerAttachFail(playerid,vehicleid,trailerid);
Definitions:
Code: WEAPON_VEHICLE_INTERIOR - after vehicle destroyed players inside vehicle interior got death by this reason
SPECIAL_VEH_AMMO_INFINITY - infinity ammo (default)
Informations
Code: By pressing KEY_ACTION you can use Cargobob/Leviathan magnet when you toggling SecialVehicle
Instalation:
Due to high library requipments, make sure you install libs in right order.
Code: #include <streamer>
#include <colandreas>
#include <EVF>
#include <3DTryg>
#include <ExtendedGrenade> //Extension using by Mines and Missile
#include <Mines>
#include <Missile>
#include <VehPara>
#define SPECIAL_VEH_USE_TEAMS //atention if you turn on teams NO_TEAM is treated as an ordinary team
#include <SpecialVehicle>
Example code:
Code: public OnPlayerEnterVehIntRequest(playerid,vehicleid){
//if vehicle is owned by another team you can block enter to interior here by return 0;
return 1;
}
public OnPlayerEnterSpecialSeat(playerid){
GameTextForPlayer(playerid,"Press ~k~~VEHICLE_HORN~ to enable/disable special weapon",2500,4);
return 1;
}
public OnPlayerEnterOppressor(playerid){
GameTextForPlayer(playerid,"Hold ~k~~VEHICLE_FIREWEAPON_ALT~ for use booster",1000,4);
return 1;
}
public OnPlayerUseCannonFail(playerid){
GameTextForPlayer(playerid,"You cannot use cannon now",1000,4);
return 1;
}
public OnPlayerEnterVehInterior(playerid,vehicleid,with_vehicle){
GameTextForPlayer(playerid,"You entered to vehicle interior, press ~k~~GROUP_CONTROL_BWD~ to exit",2500,4);
return 1;
}
public OnPlayerExitVehInterior(playerid,vehicleid,with_vehicle){
GameTextForPlayer(playerid,"You exit from vehicle interior",2500,4);
return 1;
}
public OnPlayerShootRocketFail(playerid){
GameTextForPlayer(playerid,"You can shoot only aerial targets",1000,4);
return 1;
}
public OnSpecialTrailerNotConnected(playerid){
GameTextForPlayer(playerid,"Trailer is not connected to Truck",1000,4);
return 1;
}
public OnPlayerShootOPRocketFail(playerid){
GameTextForPlayer(playerid,"You can shoot only when you on air",1000,4);
return 1;
}
public OnSpecialVehicleHasNoAmmo(playerid,vehicleid){
GameTextForPlayer(playerid,"You don't have ammo",1000,4);
return 1;
}
public OnSpecialTrailerAttachFail(playerid,vehicleid,trailerid){
SendClientMessage(playerid,0xFFFFFFFF,"You can only attach MOC trailer by MOC Truck");
return 1;
}
CMD:e(playerid){
switch(SpecialVehicle::EnterPlayer(playerid)){
case SPECIAL_VEH_ENTER_FAIL: {
SendClientMessage(playerid,0xFFFFFFFF,"You are not near a special vehicle");
}
case SPECIAL_VEH_ENTER_SUCCES: {
}
case SPECIAL_VEH_ENTER_ONFOOT: {
SendClientMessage(playerid,0xFFFFFFFF,"You must be on foot");
}
case SPECIAL_VEH_ENTER_NOT_ALLOWED: {
SendClientMessage(playerid,0xFFFFFFFF,"You can't enter a special vehicle");
}
}
return 1;
}
CMD:spawn_moc(playerid){
new Float:x,Float:y,Float:z,Float:z_angle;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,z_angle);
SpecialVehicle::CreateMOC(x,y,z,z_angle,-1,0,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
return 1;
}
Demonstration script:
sv_demo.pwn
You can run demonstration script and go to Las Venturas airport for test Special Vehicles
Download:
3DTryg.inc
EVF.inc
Missile.inc
VehPara.inc
Mines.inc
ExtendedGrenade.inc
SpecialVehicle.inc
ColAndreas Plugin
|
|
|
|
| String not showing ingame but printing fine |
|
Posted by: Snow - 2021-04-18, 09:24 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
So I am trying to show offline stats of a player and?I am fetching the results from the database to show in game but one of the columns do not show in there. But if i print the string, it shows the result there. Basically i fetch a few columns and format them into a string to show in a textdraw. As you can see here,?![[Image: Lk5fs1D.png]](https://i.imgur.com/Lk5fs1D.png)
It shows everything but not the Last Seen which is also fetched from database. On printing the string, this is the result:
Code: ~p~Username: ~w~localhost~n~~p~Score: ~w~10~n~~p~Kills:~w~ 0~n~~p~Deaths:~w~ 0~n~~p~Money:~w~ $50,000~n~~p~Last On:~w~ 04-05-2021
In the code above, you can clearly see its printing "Last Seen On:" thing but it wont show it in game. Here is the code:
Code: CMD:osts(playerid, params[])
{
? ? new query[128], string2[128], accountname[24], ohours, omins, oscore, obal, okills, odeaths, ologged[128];
? ? if(sscanf(params, "s[24]", accountname))
? ? ? ? return SendClientMessage(playerid, COLOR_RED, "USAGE: /osts [account name]");
? ? mysql_format(g_SQL, query, sizeof(query), "SELECT score,hours,minutes,money,kills,deaths, laston FROM `players` WHERE `username` = '%e'",accountname);
? ? new Cache:result;
? ? result = mysql_query(g_SQL, query, true);
? ? new rows = cache_num_rows();
? ? if(rows)
? ? {? ? ?
? ? ? ? new string[1024];
? ? ? ? PlayerTextDrawShow(playerid, OStatsTD[playerid][0]);
? ? ? ? PlayerTextDrawShow(playerid, OStatsTD[playerid][1]);
? ? ? ? PlayerTextDrawShow(playerid, OStatsTD[playerid][3]);
? ? ? ? for (new i = 0; i < rows; i )
? ? ? ? {
? ? ? ? ? ? cache_get_value_name(i, "laston", ologged);
? ? ? ? ? ? cache_get_value_name_int(i, "kills", okills);
? ? ? ? ? ? cache_get_value_name_int(i, "deaths", odeaths);
? ? ? ? ? ? cache_get_value_name_int(i, "score", oscore);
? ? ? ? ? ? cache_get_value_name_int(i, "hours", ohours);
? ? ? ? ? ? cache_get_value_name_int(i, "minutes", omins);
? ? ? ? ? ? cache_get_value_name_int(i, "money", obal);
? ? ? ? ? ?
? ? ? ? ? ? format(string, sizeof(string), "~p~Username: ~w~%s~n~~p~Score: ~w~%d~n~~p~Kills:~w~ %d~n~~p~Deaths:~w~ %d~n~~p~Money:~w~ %s~n~~p~Last On:~w~ %s", accountname,oscore,okills,odeaths,formatInt(obal), ologged);
? ? ? ? }
? ? ? ? PlayerTextDrawSetString(playerid, OStatsTD[playerid][2], string);
? ? ? ? PlayerTextDrawShow(playerid, OStatsTD[playerid][2]);?
? ? ? ? SetTimerEx("tdhide", 10000, false, "i", playerid);?
? ? ? ?
? ? ? ? cache_delete(result);
? ? }
? ? else
? ? format(string2, sizeof(string2), "ERROR: %s isn't found in the database." ,accountname);
? ? SendClientMessage(playerid, COLOR_RED, string2);
? ? return 1;
}
Any idea what could be wrong here? Also, increasing the string size wouldn't help either.
|
|
|
|
|