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: CalvinC
Forum: Scripting Help 30/06/2016, 07:28 AM
Replies: 5
Views: 598
Posted By CalvinC
Re: Static IP address for the server

Happens on my desktop PC too, though it works fine on my laptop.
Forum: Scripting Help 30/06/2016, 07:25 AM
Replies: 2
Views: 321
Posted By CalvinC
Re: How to Check After Animation

This is what i do:
new
animlib[32],
animname[32]
;
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));

if(!strcmp(animlib,...
Forum: Everything and Nothing 14/05/2016, 11:26 AM
Replies: 21
Views: 1,864
Posted By CalvinC
Re: Just a curious question

I tried some new editors, but i didn't see much good in them so i'm just sticking with Pawno.
Forum: Maps 07/05/2016, 02:58 PM
Replies: 10
Views: 2,468
Posted By CalvinC
Re: Europe Union Headquarts in Los Santos

Looks good, but it doesn't quite fit, you should place it in the more rich neighbourhoods.
Forum: Scripting Help 07/05/2016, 02:41 PM
Replies: 1
Views: 264
Posted By CalvinC
Re: Help

Wrong section, post here:
http://forum.sa-mp.com/showthread.php?t=447813
Forum: Everything and Nothing 06/05/2016, 10:10 PM
Replies: 49
Views: 4,473
Posted By CalvinC
Re: COD Infinite warfare vs. Battlefield 1

The likes/dislikes should speak for themselves lol.
Forum: Scripting Help 06/05/2016, 08:57 PM
Replies: 12
Views: 1,639
Posted By CalvinC
Re: Infinite oxygen and etc.

You can use this include:
http://forum.sa-mp.com/showthread.php?p=3694016
And then use SetPlayerOxygenValue in a short repeating timer or something.
SetPlayerOxygenValue(playerid, Float:Value);
Forum: Everything and Nothing 06/05/2016, 03:20 PM
Replies: 14
Views: 1,339
Posted By CalvinC
Re: SA-MP Issue

Cant you just add it as an exception in Avast?
Forum: Scripting Help 06/05/2016, 08:59 AM
Replies: 9
Views: 576
Posted By CalvinC
Re: X is the richest player

%s is for a string, which consists of characters (letters, numbers etc.)
Use %i for displaying the amount of money, which is for an integer (numbers)
Forum: Everything and Nothing 05/05/2016, 06:57 PM
Replies: 17
Views: 1,357
Posted By CalvinC
Re: food for thought

Another pointless topic...
Forum: Scripting Help 05/05/2016, 12:49 PM
Replies: 2
Views: 350
Posted By CalvinC
Re: Boosting a vehicle?

Because the vehicle can be travelling South-West aswell, which results in negative X and Y speeds, so multiply it instead:
SetVehicleVelocity(GetPlayerVehicleID(playerid), x*0.5, y*0.5, z);
Forum: Tutorials 04/05/2016, 12:33 PM
Replies: 8
Views: 4,569
Posted By CalvinC
Re: How to prevent damage

That code just reverses the damage, and it doesn't work, look at this example:
Say the player that got hit has 30 HP.
The damage dealt was 40, killing the player.
Then the callback is called with...
Forum: Tutorials 04/05/2016, 12:14 PM
Replies: 8
Views: 4,569
Posted By CalvinC
Re: How to prevent damage

No, there's no way to do that.
You can only reverse the damage by putting his health back when he's hit, but apart from OnPlayerWeaponShot the callbacks are only called afterwards as mentioned.
Forum: Maps 02/05/2016, 07:34 AM
Replies: 6
Views: 1,585
Posted By CalvinC
Re: My 2nd Island (good for RP)

Looks cool, wheres the first?
Forum: Scripting Help 01/05/2016, 05:07 PM
Replies: 24
Views: 1,790
Posted By CalvinC
Re: How to > Add Checkpoint > SetPlayerPos

You need to use Incognito's streamer.
It'll let you have more than one checkpoint, and only be shown close to you, there's even a parameter to adjust the distance.
Forum: Scripting Help 01/05/2016, 04:19 PM
Replies: 24
Views: 1,790
Posted By CalvinC
Re: How to > Add Checkpoint > SetPlayerPos

If you want more than one at the same time you need to use Dynamic Checkpoints as i showed above.
Forum: Scripting Help 01/05/2016, 03:59 PM
Replies: 24
Views: 1,790
Posted By CalvinC
Re: How to > Add Checkpoint > SetPlayerPos

You would also need to check if that is the correct Checkpoint you entered, you can use Incognito's Dynamic Checkpoints for that.
new CP;
CP = CreateDynamicCP(Float:x, Float:y, Float:z, Float:size,...
Forum: Scripting Help 01/05/2016, 12:32 PM
Replies: 4
Views: 528
Posted By CalvinC
Re: Help with Iplomax textdraw editor.

Did you place the PLEO.txd in your GTA\models\txd
Forum: Scripting Help 01/05/2016, 12:05 PM
Replies: 4
Views: 528
Posted By CalvinC
Re: Help with Iplomax textdraw editor.

Connect to your server by entering "localhost" in your samp client instead of the server IP.
Forum: Scripting Help 01/05/2016, 09:37 AM
Replies: 9
Views: 470
Posted By CalvinC
Re: When shoot player got exp

OnPlayerWeaponShot, OnPlayerTakeDamage, OnPlayerGiveDamage or OnPlayerShootPlayer.
Forum: Scripting Help 01/05/2016, 07:13 AM
Replies: 6
Views: 1,467
Posted By CalvinC
Re: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS"

You haven't defined tPrice or Weapon anywhere it seems.
For DIALOG_STYLE_TABLIST_HEADERS, update your server to 0.3.7 here (http://www.sa-mp.com/download.php).
Forum: Scripting Help 01/05/2016, 07:10 AM
Replies: 19
Views: 1,508
Posted By CalvinC
Re: [HELP] SAMP problems (lagging)

If there's a lot of code being executed in OnPlayerUpdate the server will definitely lag, make him put it into timers instead.
Forum: Scripting Help 30/04/2016, 10:34 PM
Replies: 1
Views: 406
Posted By CalvinC
Re: Mta and objects

Why don't you just use a SAMP map editor?
Forum: Scripting Help 30/04/2016, 07:52 PM
Replies: 2
Views: 334
Posted By CalvinC
Re: Next available ID

stock GetFreeVehicleSlot()
{
for(new i = 1; i < MAX_VEHICLES; i ++)
{
if(!IsValidVehicle(i)) return i;
}
return 0;
}
This will get the next vehicleid that is unused.
Forum: Scripting Help 30/04/2016, 04:50 PM
Replies: 10
Views: 932
Posted By CalvinC
Re: a idea for disarm all players and give all players ?

Loop
ResetPlayerWeapons (https://wiki.sa-mp.com/wiki/ResetPlayerWeapons)
GivePlayerWeapon (https://wiki.sa-mp.com/wiki/GivePlayerWeapon)
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 05:22 PM.


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