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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,695
» Latest member: b52usorg1
» Forum threads: 2,499
» Forum posts: 12,568

Full Statistics

Online Users
There are currently 240 online users.
» 0 Member(s) | 236 Guest(s)
DuckDuckGo, Bing, Yandex, Google

Latest Threads
Looking for a Pawn dev - ...
Forum: General Discussions
Last Post: RedNeckSnailSpit
2 hours ago
» Replies: 0
» Views: 12
Custom Launcher
Forum: Questions and Suggestions
Last Post: voidedsphinx
Yesterday, 05:18 PM
» Replies: 0
» Views: 34
My Server keeps closing
Forum: Questions and Suggestions
Last Post: iAmir
2026-07-09, 08:55 AM
» Replies: 1
» Views: 56
[LIVE] [FRESH START] Ulti...
Forum: Advertisements
Last Post: Neville
2026-07-07, 08:37 PM
» Replies: 0
» Views: 95
[Announcement] Spawn - An...
Forum: Tech
Last Post: ricardofnl
2026-07-07, 10:38 AM
» Replies: 2
» Views: 332
Unban
Forum: Chat
Last Post: iAmir
2026-07-05, 02:21 PM
» Replies: 5
» Views: 884
Pedestrians
Forum: Plugins
Last Post: iAmir
2026-07-05, 12:18 AM
» Replies: 1
» Views: 379
Silly little render a did...
Forum: Art
Last Post: iAmir
2026-07-05, 12:07 AM
» Replies: 1
» Views: 1,305
Discord Server Unable to ...
Forum: Chat
Last Post: iAmir
2026-07-05, 12:06 AM
» Replies: 1
» Views: 479
It has been a while
Forum: Chat
Last Post: iAmir
2026-07-05, 12:04 AM
» Replies: 1
» Views: 498

 
  HELP with log.
Posted by: Ambarita - 2021-04-22, 11:06 AM - Forum: Pawn Scripting - Replies (4)

Is there anything i can use for making logs? like a kick and ban log.


  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;

}


  [HELP] GetplayerName Initial Firstname then full Lastname.
Posted by: TheAnimalKa - 2021-04-21, 10:42 AM - Forum: Pawn Scripting - Replies (3)

Hello. Can somebody help me regarding getplayername that will only get the first initial of the firstname of the player then the full lastname. Example:



Full Name: Hello_Help



print >> H. Help.


  HELP! I want to know how the GPS System using plugins feels more real in function?
Posted by: PutuSuhartawan - 2021-04-20, 11:21 PM - Forum: Pawn Scripting - Replies (1)

Sir, do you know how to get a GPS plugin for the SAMP server that offers road direction services that can be arrows. or appear on the radar like a line following a path towards a target?


  Does anybody have TextMenu Include file ?
Posted by: Awaken NeverLand - 2021-04-20, 06:06 AM - Forum: Pawn Scripting - Replies (2)

I am searching for TextMenu include all over the internet and still couldn't found. If anybody have it in your scripts please share it with me


  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:?[Image: 8hBDDSd.png]


  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]

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.


Photo Unacceptable nickname - Crash in game
Posted by: Viola - 2021-04-18, 03:40 PM - Forum: Pawn Scripting - Replies (3)

There is an issue that always happens when players log in-game and play for 10-15 minutes. After that, there is a message with green letters like "UNACCEPTABLE NICKNAME". It's not caused by samp client because it happens to all players who are in-game.



https://prnt.sc/11namd3