SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 339
Search took 0.01 seconds.
Search: Posts Made By: KeyOfKey
Forum: Scripting Help 18/08/2019, 06:52 PM
Replies: 2
Views: 85
Posted By KeyOfKey
OnPlayerGiveDamage problem

I've tried to script an anti random dm.

Basically players can't attack each other if they're both civilian, innocent and got no bounty.

It works with weps but if i attack someone with fists its...
Forum: Scripting Help 18/08/2019, 07:45 AM
Replies: 10
Views: 158
Posted By KeyOfKey
Re: Jail problem

Or instead setting player health and showing the message, can i just return 0 to prevent damages?
Forum: Scripting Help 17/08/2019, 08:21 PM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

Yeah fixed, ty.
Forum: Scripting Help 17/08/2019, 06:55 PM
Replies: 4
Views: 90
Posted By KeyOfKey
Re: bcrypt version check failed

That run time error, are you sure you have:

main( ) { }

In your gamemode?
Forum: Scripting Help 17/08/2019, 04:34 PM
Replies: 10
Views: 158
Posted By KeyOfKey
Re: Jail problem

I have a custom team system. I don't use gTeam or similar, i have pTeam in my players enum. :|
Forum: Scripting Help 17/08/2019, 03:31 PM
Replies: 10
Views: 158
Posted By KeyOfKey
Re: Jail problem

I have auto spawn after login (So i use SetSpawnInfo), and i placed the "PutPlayerInJail" code on OnPlayerSpawn.

EDIT: Seems i fixed.

The problem was setting player health to FLOAT_INFINITY. I...
Forum: Scripting Help 17/08/2019, 02:44 PM
Replies: 10
Views: 158
Posted By KeyOfKey
Re: Jail problem

@Sia i tried that way too and doesn't work.
@Unte i did, it's the jailed check and PutPlayerInJail.

Question: as you can see i set infinite health when player gets jailed, could be that the...
Forum: Scripting Help 17/08/2019, 01:01 PM
Replies: 10
Views: 158
Posted By KeyOfKey
Jail problem

I have a problem with a jail system i made.

I have a /jail cmd where staff can set seconds for jail, then i call this to jail the player:


public PutPlayerInJail(playerid)
{...
Forum: Scripting Help 16/08/2019, 07:29 PM
Replies: 8
Views: 123
Posted By KeyOfKey
Re: Doubt

It works, thank you. :)
Forum: Scripting Help 16/08/2019, 08:02 AM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

I show it using "GivePlayerWantedLevel(playerid, PUBLIC_EMERGENCY_VEHICLE_THEFT, MediumString);"

Which GivePlayerWantedLevel sends the crime string too:


stock GivePlayerWantedLevel(playerid,...
Forum: Scripting Help 15/08/2019, 08:39 PM
Replies: 8
Views: 123
Posted By KeyOfKey
Re: Doubt

I tried already, with that code i'll not even get the wanted level lol.
Forum: Scripting Help 15/08/2019, 08:17 PM
Replies: 8
Views: 123
Posted By KeyOfKey
Doubt

I'm giving a wanted level to killerid based on which class the victim was on death:


switch(ReturnPlayerClass(playerid)) //Get the class of the victim.
{
case CLASS_CIVILIAN:
{...
Forum: Scripting Help 15/08/2019, 08:14 PM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

There's nothing wrong with the GivePlayerWantedLevel function since it's giving me wanted level correclty for PUBLIC_EMERGENCY_VEHICLE_THEFT. Even the SendLeoMessage is shown!

I've also tried to...
Forum: Scripting Help 14/08/2019, 04:22 PM
Replies: 27
Views: 581
Posted By KeyOfKey
Forum: Scripting Help 14/08/2019, 09:03 AM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

What?
Forum: Scripting Help 13/08/2019, 07:48 AM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

Bump.
Forum: Scripting Help 12/08/2019, 04:25 PM
Replies: 27
Views: 581
Posted By KeyOfKey
Re: Get Closest Cop

It's the same thing. Doing !ReturnWantedLevel or in the way you said it's the same..
Forum: Scripting Help 12/08/2019, 10:21 AM
Replies: 27
Views: 581
Posted By KeyOfKey
Re: Get Closest Cop

Just tested and doesn't work :| Wanted level reduces even if a cop is near. Omg.
Forum: Scripting Help 11/08/2019, 03:41 PM
Replies: 27
Views: 581
Posted By KeyOfKey
Re: Get Closest Cop

So what i have to do?

EDIT: I just edited from == to != and seems to work, but i have tested whilst being alone on server. I'll test when a cop is near.
Forum: Scripting Help 11/08/2019, 01:01 PM
Replies: 27
Views: 581
Posted By KeyOfKey
Forum: Scripting Help 11/08/2019, 07:16 AM
Replies: 8
Views: 167
Posted By KeyOfKey
Re: Making new command.

Just for curiosity, what is RPALN and RPNU?
Forum: Scripting Help 10/08/2019, 03:28 PM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

I just checked, i have SendLEOMessage to send message to all cops and guess what? Message gets sent with LSPD car :|


stock IsAFirefighterVehicle(vehicleid)
{
...
Forum: Scripting Help 10/08/2019, 01:36 PM
Replies: 27
Views: 581
Posted By KeyOfKey
Re: Get Closest Cop

I tried Sya's code and doesn't work:


task ReduceWantedLevel[2000]() //4 minutes
{
foreach(new i: Player)
{
if(Player[i][IsLoggedIn] && Player[i][Spawned] && !IsPlayerPaused(i) &&...
Forum: Everything and Nothing 10/08/2019, 09:57 AM
Replies: 6
Views: 260
Posted By KeyOfKey
Re: SA-MP Scripters

"work" and "for free" can't go together.
Forum: Scripting Help 10/08/2019, 08:45 AM
Replies: 15
Views: 340
Posted By KeyOfKey
Re: Problem

I do. GivePlayerWantedLevel already sends a message with the crime. (MediumString in this case).
Showing results 1 to 25 of 339

 

All times are GMT. The time now is 05:52 AM.


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