SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 77
Search took 0.00 seconds.
Search: Posts Made By: aKnoxx
Forum: Scripting Help 03/05/2019, 07:49 PM
Replies: 2
Views: 53
Posted By aKnoxx
Re: How can I combine these into one line?

Ah got it thank you, I was trying to put just one |
Forum: Scripting Help 03/05/2019, 07:44 PM
Replies: 2
Views: 53
Posted By aKnoxx
How can I combine these into one line?

I want both of these if statements to do the exact same thing. Is there a way to put them both on one line? With one of these | "or" things?

if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{...
Forum: Scripting Help 03/05/2019, 02:36 AM
Replies: 21
Views: 282
Posted By aKnoxx
Re: Level up with respects.

I just tested that formula and this is what I got lol so you might want to change it to something else actually lmao

https://imgur.com/a/ftUcr8R

You would need over 1000 respect points to level...
Forum: Scripting Help 03/05/2019, 02:17 AM
Replies: 21
Views: 282
Posted By aKnoxx
Re: Level up with respects.

Put it in the /buylevel command or whatever levels people up.

And then where ever your storing your player stats put this and make sure you default it to 2:
RespectNeeded = 2

And make sure...
Forum: Scripting Help 02/05/2019, 09:48 PM
Replies: 21
Views: 282
Posted By aKnoxx
Re: Level up with respects.

You just need the formula?

I think this would work:

RespectNeeded = 2
NextRespectNeeded = RespectNeeded * 2
RespectNeeded = NextRespectNeeded

And then just set the player's spawn level to...
Forum: Scripting Help 02/05/2019, 06:32 PM
Replies: 12
Views: 217
Posted By aKnoxx
Re: Command That Changed Only 1 Skin! Help

Is this what you mean?

CMD:setskin(playerid, params[])
{
new targetid, skinid;
if (sscanf(params, "ui", targetid, skinid)) {
SendClientMessage(playerid, -1, "[USAGE]: /setskin <user/id>...
Forum: Scripting Help 02/05/2019, 05:19 PM
Replies: 2
Views: 74
Posted By aKnoxx
Re: How do I make this cmd work for both non-admins and admins but in a different way? In Pawn.CMD

That doesn't work..
I'm talking about with admin flags in pawn.cmd
Forum: Scripting Help 02/05/2019, 05:00 PM
Replies: 2
Views: 74
Posted By aKnoxx
How do I make this cmd work for both non-admins and admins but in a different way? In Pawn.CMD

CMD:kill(playerid, params[])
{
if(sscanf(params, "u", params[0])) {
SendClientMessage(playerid, -1, "[ADMIN ONLY] You can also /kill <targetid>");
SetPlayerHealth(playerid, 0.0);
return...
Forum: Scripting Help 02/05/2019, 05:44 AM
Replies: 3
Views: 106
Posted By aKnoxx
Re: Is there an easier way to do this? fread the LAST 20 lines?

Thank you so much man. +repped you.

Can you please briefly explain what this line does?

fseek(rflh);

I read this: https://wiki.sa-mp.com/wiki/Fseek and I still don't understand it...
Forum: Scripting Help 02/05/2019, 04:18 AM
Replies: 3
Views: 106
Posted By aKnoxx
Is there an easier way to do this? fread the LAST 20 lines?

Right now I have this:

CMD:logs(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SCM(playerid, -1, "USAGE: /logs <user/id>");

new filename[128];...
Forum: Scripting Help 02/05/2019, 03:03 AM
Replies: 1
Views: 70
Posted By aKnoxx
What's the difference between .log and .txt?

I'm making a function which logs commands a player does. Which file extension would be better? If any? And why? Is there any difference at all?
Forum: Scripting Help 01/05/2019, 12:27 AM
Replies: 2
Views: 73
Posted By aKnoxx
Re: How do I make a dialog MSGBOX which shows multiple lines from fread?

Nvm got it, I just had the dialog showing in the loop by accident lol
Forum: Scripting Help 01/05/2019, 12:14 AM
Replies: 2
Views: 73
Posted By aKnoxx
How do I make a dialog MSGBOX which shows multiple lines from fread?

So I have a command that I'm trying to make which takes lines from fread() and I want to make it so that each line found shows up in its own separate line in a dialog.

Here is what I have so far...
Forum: Scripting Help 29/04/2019, 06:48 PM
Replies: 4
Views: 106
Posted By aKnoxx
Re: Why isn't SetPlayerPos working?

Tyvm, just removed my OnPlayerSpawn and it worked fine.

Repped ya<3
Forum: Scripting Help 29/04/2019, 06:33 PM
Replies: 4
Views: 106
Posted By aKnoxx
Why isn't SetPlayerPos working?

CMD:spec(playerid, params[])
{
new targetid;

if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "Usage: /spec id");

GetPlayerPos(playerid, lastpos[playerid][0],...
Forum: Scripting Help 29/04/2019, 05:30 PM
Replies: 7
Views: 83
Posted By aKnoxx
Re: Why am I getting this error?

O..........

Thank you very much lol
Forum: Scripting Help 29/04/2019, 05:19 PM
Replies: 7
Views: 83
Posted By aKnoxx
Re: Why am I getting this error?

Where do I put that? lol sry I'm pretty new to scripting
Forum: Scripting Help 29/04/2019, 05:04 PM
Replies: 7
Views: 83
Posted By aKnoxx
Re: Why am I getting this error?

That worked thank you! I'm not getting that same error anymore but now I'm getting this error and the "Updating" printf is being spammed way too quick, I'm trying to make it update only once every...
Forum: Scripting Help 29/04/2019, 04:21 PM
Replies: 7
Views: 83
Posted By aKnoxx
Why am I getting this error?

In my server terminal I'm getting this error everytime I try to use ShowPlayerInfo(playerid, targetid) in my "spec" filterscript

[debug] #0 00004248 in public ShowPlayerInfo (1, 0) from spec.amx...
Forum: Server Support 27/04/2019, 09:57 PM
Replies: 14,256
Views: 1,682,901
Posted By aKnoxx
Re: Looking for scripters/helpers? Post here!

Looking to help with scripting for a roleplay server. (preferably heavy RP but doesn't matter much)

I'm fairly new to scripting but I can definitely script basic-intermediate stuff very actively....
Forum: Scripting Help 27/04/2019, 09:34 PM
Replies: 8
Views: 198
Posted By aKnoxx
Re: max 105fps samp

LMAO werdd

Pretty sure samp already has a max fps of 90 though. By default.

Here is how though:

https://forum.sa-mp.com/showthread.php?t=490436 >> GetPlayerFPS or OnPlayerFPSChange
Forum: Everything and Nothing 08/01/2019, 11:03 AM
Replies: 21
Views: 1,233
Posted By aKnoxx
Forum: Screenshots and Videos 08/01/2019, 11:01 AM
Replies: 9
Views: 686
Posted By aKnoxx
Forum: Scripting Help 07/01/2019, 04:19 PM
Replies: 4
Views: 135
Posted By aKnoxx
Re: vehicleid

new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);

new vehicleid, vehiclemodel;
vehicleid = GetPlayerVehicleID(playerid);
vehiclemodel = GetVehicleModel(vehicleid);
Forum: Server Support 07/01/2019, 11:50 AM
Replies: 14,256
Views: 1,682,901
Posted By aKnoxx
Re: Looking for scripters/helpers? Post here!

Looking for trial moderators and a head of factions admin for a new heavy RP community with a custom script/mappings. We will be launching soon (this week). Also looking for a Fire Department faction...
Showing results 1 to 25 of 77

 

All times are GMT. The time now is 01:55 AM.


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