SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: BeckzyBoi
Forum: Filterscripts 04/01/2019, 07:30 AM
Replies: 4
Views: 515
Posted By BeckzyBoi
SPECIAL_ACTION_USECELLPHONE & entering vehicle as passenger fix

When you enter a vehicle as passenger whilst using SPECIAL_ACTION_USECELLPHONE the special action will break, though GetPlayerSpecialAction isn't updated and will stay as SPECIAL_ACTION_USECELLPHONE....
Forum: Scripting Help 03/01/2019, 01:01 PM
Replies: 1
Views: 78
Posted By BeckzyBoi
Re: How can I get the x y z pos of the BACK/FRONT of something?

Get the X and Y 2 units in front of a player:

new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
x += floatsin(-a, degrees) * 2.0;
y +=...
Forum: General 02/01/2019, 06:20 AM
Replies: 8
Views: 694
Posted By BeckzyBoi
Re: Increased MAX_OBJECTS limit

https://forum.sa-mp.com/showpost.php?p=4069932&postcount=66
Forum: Scripting Help 29/12/2018, 07:13 AM
Replies: 10
Views: 240
Posted By BeckzyBoi
Re: Issue with 3DTextLabel that's ment to vanish with a timer.

No it doesn't kill it, it just stops it from repeating.




new Text3D:PlayerSpawnLabel[MAX_PLAYERS] = {Text3D:INVALID_3DTEXT_ID, ...};
new SpawnLabelDespawnTimer[MAX_PLAYERS];

public...
Forum: Scripting Help 29/12/2018, 04:51 AM
Replies: 10
Views: 240
Posted By BeckzyBoi
Re: Issue with 3DTextLabel that's ment to vanish with a timer.

What's your define of COLOR_YELLOW? What alpha are you using? E.G. 0xFFFF00FF . Also add KillTimer(LoginLabelDespawnTimer[playerid]); at the end of the timer.
Forum: Scripting Help 28/12/2018, 06:33 PM
Replies: 5
Views: 149
Posted By BeckzyBoi
Re: Get vehicle free seat ID

I'm not sure if GetPlayerVehicleSeat always works. It didn't used to work at times for some reason.
Forum: Scripting Help 28/12/2018, 06:29 PM
Replies: 10
Views: 240
Posted By BeckzyBoi
Re: Issue with 3DTextLabel that's ment to vanish with a timer.

Even though the timer isn't set to repeat, you should still kill it https://forum.sa-mp.com/images/icons/icon14.png
Forum: Scripting Help 24/12/2018, 12:06 PM
Replies: 14
Views: 423
Posted By BeckzyBoi
Re: Why do people make SendClientMessageEx?

I was showing an example of why some people would use their own alternative SendClientMessage function?
Forum: Scripting Help 24/12/2018, 07:55 AM
Replies: 8
Views: 127
Posted By BeckzyBoi
Re: Why is this cmd not working?

That should spawn the vehicle in front of you, facing left, and in the same virtual world & interior as you.

Edit:

new vehid, float:x, float:y, float:z;


should be:

new vehid, Float:x,...
Forum: Scripting Help 24/12/2018, 07:51 AM
Replies: 8
Views: 127
Posted By BeckzyBoi
Re: Why is this cmd not working?

Try this:

CMD:veh(playerid, params[])
{
new vehid;
if (sscanf(params, "i", vehid)) {
SendClientMessage(playerid, -1, "[USAGE]: /veh [vehid 400 - 611]");
return 1;
...
Forum: Scripting Help 24/12/2018, 07:42 AM
Replies: 8
Views: 127
Posted By BeckzyBoi
Re: Why is this cmd not working?

When the vehicle spawns in front of you, it'll be facing to the left - meaning the driver door will be facing you.
Forum: Scripting Help 24/12/2018, 07:34 AM
Replies: 8
Views: 127
Posted By BeckzyBoi
Re: Why is this cmd not working?

CMD:veh(playerid, params[])
{
new vehid;
if (sscanf(params, "i", vehid)) {
SendClientMessage(playerid, -1, "[USAGE]: /veh [vehid 400 - 611]");
return 1;
}
if...
Forum: Scripting Help 24/12/2018, 07:20 AM
Replies: 3
Views: 83
Posted By BeckzyBoi
Re: How do I remove underscore from this msg?

You might also want to check if the target ID and skin ID are valid:


if (!IsPlayerConnected(targetid)) {
SendClientMessage(playerid, -1, "Inactive player ID.");
return 1;
}
Forum: Scripting Help 24/12/2018, 06:56 AM
Replies: 3
Views: 83
Posted By BeckzyBoi
Re: How do I remove underscore from this msg?

CMD:setskin(playerid, params[])
{
new targetid, skinid;
if (sscanf(params, "ii", targetid, skinid)) {
SendClientMessage(playerid, -1, "[USAGE]: /setskin [playerid] [skinid]");
...
Forum: Scripting Help 24/12/2018, 06:18 AM
Replies: 14
Views: 423
Posted By BeckzyBoi
Re: Why do people make SendClientMessageEx?

Are you sure messages not being sent before Kick() was fixed? They still aren't sent for me.

Back on topic - my SendClientMessageEx/SendClientMessageToAllEx functions are named...
Forum: Bug Reports 21/12/2018, 01:00 PM
Replies: 1
Views: 334
Posted By BeckzyBoi
Re: SetSpawnInfo and some other funcs

I can confirm the second issue R.E. SetSpawnInfo.

Edit:
https://forum.sa-mp.com/showthread.php?t=624667
https://forum.sa-mp.com/showthread.php?t=649396
Forum: News and Updates 06/12/2018, 06:33 PM
Replies: 139
Views: 33,233
Posted By BeckzyBoi
Re: SA-MP 0.3.7 R3 client update (optional)

If the rest of your players are using 0.3.7-R3, though, it doesn't matter about the hackers because they won't be able to crash the rest of your players who're using R3.
Forum: News and Updates 06/12/2018, 02:18 PM
Replies: 139
Views: 33,233
Posted By BeckzyBoi
Re: SA-MP 0.3.7 R3 client update (optional)

Use GetPlayerVersion in OnPlayerConnect. If the player's version isn't "0.3.7 R3" inform them then kick them.
Forum: Everything and Nothing 16/11/2018, 03:01 PM
Replies: 48
Views: 1,368
Posted By BeckzyBoi
Re: What music instrument you can play?

Trumpet/cornet (primarily). Other than that - just a recorder haha. Or maracas and tambourine... oh and the triangle.......
Forum: Bug Reports 14/09/2018, 10:25 AM
Replies: 6
Views: 544
Posted By BeckzyBoi
Re: Vehicle X was not deleted [Trains]

Trains can only be created with AddStaticVehicle/AddStaticVehicleEx, which can only be used in OnGameModeInit. Unless I'm misunderstanding your problem?
Forum: Everything and Nothing 30/08/2018, 11:44 PM
Replies: 47
Views: 4,402
Posted By BeckzyBoi
Forum: Scripting Help 11/07/2018, 05:17 PM
Replies: 4
Views: 180
Posted By BeckzyBoi
Re: question

I guess:

public OnPlayerDisconnect(playerid, reason)
{
new discstring[128];
switch(reason)
{
case 0: format(discstring, sizeof(discstring), "* %s has left the server. [...
Forum: Scripting Help 11/07/2018, 05:10 PM
Replies: 5
Views: 193
Posted By BeckzyBoi
Re: No reload gun

I'm not sure why you're giving the player 10 ammo every 0.25 seconds, but the correct way to do it is: https://pastebin.com/RbZMa3Ly
Forum: Scripting Help 11/07/2018, 05:00 PM
Replies: 25
AFK
Views: 453
Posted By BeckzyBoi
Re: AFK

You're welcome. It'll check the player is fully connected & not wasted. It'll also check whether the player is in the same position as last checked, or whether they're in a different position &...
Forum: Scripting Help 11/07/2018, 04:09 PM
Replies: 25
AFK
Views: 453
Posted By BeckzyBoi
Re: AFK

I wrote this for you: https://pastebin.com/beiz8Zvp
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:47 AM.


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