SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 28
Search took 0.01 seconds.
Search: Posts Made By: PPC23
Forum: Screenshots and Videos 02/04/2020, 12:13 PM
Replies: 11
Views: 370
Posted By PPC23
Re: Modified highway

I thought about that too. It's a great idea! Maybe we should collaborate and make this possible.
Forum: Screenshots and Videos 02/04/2020, 11:07 AM
Replies: 11
Views: 370
Posted By PPC23
Re: Modified highway

That would be great!

It looks way more better. Anyway I didn't bother much to use the bowl-of-spaghetti-like highway.
Forum: General 24/03/2020, 12:59 PM
Replies: 2
Views: 258
Posted By PPC23
Re: Question, what language to use for Gamemode RP 1000 for slots?

If you have no knowledge in other scripting languages, then I suggest you to use Pawn. It's not that bad, there's a lot of support for in here on forums.

Anyway you would use other language if you...
Forum: Scripting Help 06/03/2020, 01:19 PM
Replies: 2
Views: 65
Posted By PPC23
Re: Los Santos area

Found in the zones include (extracted from the actual GTA:SA files):
// NAME AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
{"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}}
Forum: Scripting Help 13/02/2020, 11:24 AM
Replies: 13
Views: 394
Posted By PPC23
Re: Can't found the vehicle spawn command

The vehicles might be loaded from a separate file located in the scriptfiles folder. Check it.
Forum: Scripting Help 12/02/2020, 09:36 AM
Replies: 7
Views: 171
Posted By PPC23
Re: DIALOG_STYLE_INPUT

else if(dialogid == STOREMENU_SPRAYCAN)
{
if(!response) return 1;
new spraycan = strval(inputtext), amount;
amount = spraycan * 20;
if(GetPlayerCash(playerid) < amount) return...
Forum: Scripting Help 05/02/2020, 01:02 PM
Replies: 4
Views: 125
Posted By PPC23
Re: RGBA adding/remove alpha to int

https://wiki.sa-mp.com/wiki/Colour_Embedding#Doing_math

This should work for your need:
ChangeTransparency(color, alpha = 0xFF)
{
new newcolor;
alpha = clamp(alpha, 0x00, 0xFF);
...
Forum: Scripting Help 31/01/2020, 05:33 PM
Replies: 6
Views: 181
Posted By PPC23
Re: OnPlayerText Name Bug

You must use SetPlayerColor in your script to make it work as intended.


From SA-MP wiki (https://wiki.sa-mp.com/wiki/Color_list#Using_GetPlayerColor):
Note that GetPlayerColor only works...
Forum: Scripting Help 30/01/2020, 09:01 AM
Replies: 6
Views: 232
Posted By PPC23
Re: what's wrong wit this

The problem is that the 'reason' should be a string:

new reason[64];
if(sscanf(params, "iis[64]", targetID, time, reason)) return SendClientMessage(playerid, -1, "USAGE >> /ajail [ID] [time]...
Forum: Scripting Help 17/01/2020, 08:32 PM
Replies: 14
Views: 446
Posted By PPC23
Re: Make the world time the same for everyone

About this SetWorldTime:
#undef SetWorldTime
#define SetWorldTime(%1, %2) for(new i = 0,j = GetPlayerPoolSize();i <= j;i++) if(IsPlayerConnected(i)) SetPlayerTime(i, %1, %2);
It actually undefines...
Forum: Scripting Help 17/01/2020, 07:52 PM
Replies: 14
Views: 446
Posted By PPC23
Re: Make the world time the same for everyone

Minutes doesn't change the sky, they change only the clock. If the time is 10:00 or 10:59 - it will be the same. The sky will change at 11, etc..

You can use this to set the hour and minutes for...
Forum: Scripting Help 17/01/2020, 07:33 PM
Replies: 14
Views: 446
Posted By PPC23
Re: Make the world time the same for everyone

https://wiki.sa-mp.com/wiki/TogglePlayerClock
Note: Time is not synced with other players! Time can be synced using SetPlayerTime. (https://wiki.sa-mp.com/wiki/SetPlayerTime)
Forum: Server Support 05/01/2020, 04:45 PM
Replies: 5
Views: 344
Posted By PPC23
Re: How To SetHealth ?

The "amount" is a float.
SetPlayerHealth(playerid, 150.0);
SetPlayerArmour(playerid, 150.0);
Forum: Scripting Help 03/01/2020, 11:52 AM
Replies: 4
Views: 133
Posted By PPC23
Re: Whats the difference?

No difference. Do it the way it is the most readable to you.
Forum: General 26/09/2019, 03:20 PM
Replies: 7
Views: 1,221
Posted By PPC23
Re: Lying policeman ID

Actually, there's a speed-bump object that has been added to SA-MP with ID: 19425
A picture of the object: https://dev.prineside.com/en/gtasa_samp_model_id/model/19425-speed_bump01/
Forum: General 16/07/2019, 05:43 PM
Replies: 11
Views: 1,467
Posted By PPC23
Re: Climbing ladders.

I've heard about this one too.

Anyway, I'm currently using two pickups because I coundn't find a good ladder-climbing animation.
Forum: Screenshots and Videos 12/07/2019, 11:25 AM
Replies: 11
Views: 1,232
Posted By PPC23
Re: Deleted Bayside and San Fierro Bridge

public OnPlayerConnect(playerid)
{
// When the player connects, all map objects will be removed.
RemoveBuildingForPlayer(playerid, -1, 0.0, 0.0, 0.0, 6000.0);
return 1;
}
Done.
Forum: General 27/06/2019, 10:04 AM
Replies: 7
Views: 1,221
Posted By PPC23
Re: Lying policeman ID

By "lying policeman" do you mean this:

https://t4.ftcdn.net/jpg/00/44/55/85/240_F_44558594_DaAtRg6DEJEEJeppszFCIcqM1fBNwjJz.jpg

They are also called speed bumps. Some people use this object ID...
Forum: Scripting Help 03/04/2019, 02:42 PM
Replies: 2
Views: 115
Posted By PPC23
Re: Pickup remove

It's the gl_property filterscript that comes with the server package. Unload or delete it
Forum: Scripting Help 03/04/2019, 12:46 PM
Replies: 1
Views: 141
Posted By PPC23
Re: Dealership bug

Post code. Are you sure they aren't disabled?
Forum: Scripting Help 02/03/2019, 04:27 PM
Replies: 7
Views: 190
Posted By PPC23
Re: Help. i have a problem

Do you have this
main() {}
Make sure you put /* after the includes.
Forum: Scripting Help 02/03/2019, 04:05 PM
Replies: 2
Views: 124
Posted By PPC23
Re: Class

Class IDs start from 0
https://wiki.sa-mp.com/wiki/AddPlayerClass
Forum: Scripting Help 02/03/2019, 01:51 PM
Replies: 7
Views: 196
Posted By PPC23
Re: OnPlayerText (RCON ADMIN)

If the team color is the same as player's color you can take a look at this:
https://wiki.sa-mp.com/wiki/Color_list#Using_GetPlayerColor

Your code should look like:
format(String,...
Forum: Scripting Help 01/03/2019, 07:57 PM
Replies: 16
Views: 479
Posted By PPC23
Re: Siren

Model ID 581 is BF-400 and it's is a motorcycle.
Forum: Scripting Help 01/03/2019, 07:51 PM
Replies: 3
Views: 141
Posted By PPC23
Re: How use params into OnDialogResponse

You could try
return return cmd_kill(playerid, "");

You can also take a look at this post (https://forum.sa-mp.com/showpost.php?p=2236872&postcount=8)
Showing results 1 to 25 of 28

 

All times are GMT. The time now is 11:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.