SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 145
Search took 0.01 seconds.
Search: Posts Made By: vvhy
Forum: Scripting Help 09/05/2013, 12:49 PM
Replies: 3
Views: 399
Posted By vvhy
Re: Car Problem

Show your command if you want me to do it. Otherwise just do this:

The place where you create the vehicle just do do this


new veh =...
Forum: Scripting Help 09/05/2013, 02:45 AM
Replies: 8
Views: 1,317
Posted By vvhy
Re: Pawno Crash?

I think you just missed some brackets.
Try this:

forward StartEngine(playerid);
forward DamagedEngine(playerid);
public OnPlayerStateChange(playerid,newstate,oldstate)
{
new vid,...
Forum: Scripting Help 08/05/2013, 02:40 PM
Replies: 8
Views: 841
Posted By vvhy
Re: Can't RESPAWN filterscript's cars with /rac

Show the part where you are trying to respawn them.
Forum: Scripting Help 07/05/2013, 12:45 PM
Replies: 1
Views: 593
Posted By vvhy
Re: My server using an excessive amount of CPU

Yes, I have tried that. Should have mentioned it.

I got a few of these kinds of things, all with unknown@... I guess those are like stock functions? not sure how to get them to show the name.
...
Forum: Scripting Help 07/05/2013, 12:30 PM
Replies: 1
Views: 593
Posted By vvhy
My server using an excessive amount of CPU

I am having problems with excessive CPU usage in my gamemode script. It only started crashing just recently. I cannot pinpoint when it started or what I've added that may have caused it because I've...
Forum: Scripting Help 06/05/2013, 03:50 AM
Replies: 2
Views: 444
Posted By vvhy
Re: Team problem

What you would do is something like this:

SetPlayerTeamFromClass(playerid, classid)
{
switch (classid)
{
case 266,211,265,267,283,284,71,286://These will be cop skins
...
Forum: Scripting Help 03/05/2013, 06:28 PM
Replies: 7
Views: 1,816
Posted By vvhy
Re: Rcon login = ban

Alright, heres what you asked for:


public OnRconLoginAttempt(ip[], password[], success)
{
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
...
Forum: Scripting Help 03/05/2013, 06:24 PM
Replies: 7
Views: 1,816
Posted By vvhy
Re: Rcon login = ban

You could just disable rcon by putting

rcon 0

in the server config file
Forum: Scripting Help 03/05/2013, 06:11 PM
Replies: 6
Views: 1,241
Posted By vvhy
Re: Having Excessive CPU Usage

Another thing I should add is that it only happens and gets worse when I have a lot of players on (25-40) and when I have 0 players on it runs below 2% CPU usage. Thats the reason why its so hard to...
Forum: Scripting Help 03/05/2013, 06:05 PM
Replies: 6
Views: 1,241
Posted By vvhy
Re: Having Excessive CPU Usage

Did you even read my whole post? I always keep my code neat and efficient but I must have added something recently that made it happen all the sudden.
Forum: Scripting Help 03/05/2013, 05:53 PM
Replies: 6
Views: 1,241
Posted By vvhy
Having Excessive CPU Usage

I am having problems with excessive CPU usage in my gamemode script. It only started crashing just recently. I cannot pinpoint when it started or what I've added that may have caused it because I've...
Forum: Scripting Help 02/05/2013, 06:56 PM
Replies: 7
Views: 533
Posted By vvhy
Re: Is it possible?

You can remove a window visually if you find the index id for it. Juse use this:

SetObjectMaterial(object, indexid, 0, "none", "none", 0);
Forum: Scripting Help 02/05/2013, 04:32 AM
Replies: 5
Views: 627
Posted By vvhy
Re: Dynamic Cps with command to rob

Put this under your

public Server()




if(GetPVarInt(i, "RobbingPizza") == 1)
{
new string[120]; new pname[24]; GetPlayerName(i, pname, 24);
Forum: Scripting Help 02/05/2013, 04:18 AM
Replies: 9
Views: 1,054
Posted By vvhy
Re: cage help

Try this
Put this on your /kill command before it sets the players health to 0:

if(GetPVarInt(playerid,"iscaged") == 1) return SendClientMessage(playerid, 0xB90004FF, "You are caged. You cannot...
Forum: Scripting Help 02/05/2013, 03:24 AM
Replies: 5
Views: 627
Posted By vvhy
Re: Dynamic Cps with command to rob

Try this, I think it should work for the gamemode you are using.


CMD:robstore(playerid,params[])
{
if(!IsPlayerInCheckpoint(playerid)) {
SendClientMessage(playerid, COLOR_ERROR, "You...
Forum: Scripting Help 02/05/2013, 03:07 AM
Replies: 1
Views: 479
Posted By vvhy
Re: Car goes away on disconnet

Show this function

ClearChar(playerid);
Forum: Scripting Help 25/04/2013, 04:43 PM
Replies: 11
Views: 758
Posted By vvhy
Forum: Scripting Help 25/04/2013, 04:39 PM
Replies: 5
Views: 1,210
Posted By vvhy
Re: Rcon Password

You are probably just using this to get access to somebody elses rcon after you give them a script.
Forum: Scripting Help 23/04/2013, 10:31 PM
Replies: 2
Views: 471
Posted By vvhy
Re: Gun Store

You forgot to include Float:range which is The furthest distance the player can be to be in range.
so it would be

if(IsPlayerInRangeOfPoint(playerid,1.0, 295.8104,-38.5144,1001.5156))//furthest...
Forum: Scripting Help 23/04/2013, 01:05 AM
Replies: 0
Views: 888
Posted By vvhy
Preventing player bug abuse

The point of this piece of code is to find if a player is on the back of a bike without anyone on the front and if they have a gun then set the player armed weapon to fists. Then if someone gets on...
Forum: Scripting Help 17/04/2013, 11:39 PM
Replies: 9
Views: 674
Posted By vvhy
Re: Replacing /q with /quit

@re It doesn't seem to work ingame, also when compiling it I get the warning:

And that line is


strins(text, "uit", pos+2);

@cessil Yeah, thats probably a better idea
Forum: Scripting Help 17/04/2013, 11:19 PM
Replies: 9
Views: 674
Posted By vvhy
Re: Replacing /q with /quit

@Luis- Yes, if you do /quit ingame it will make you quit the game.
@Emmet_ I think you misunderstood, I mean just replace it if they say it in the chat, not if they type "/q" without a space or...
Forum: Scripting Help 17/04/2013, 11:13 PM
Replies: 9
Views: 674
Posted By vvhy
Post Replacing /q with /quit

I have had a problem in my server with players trolling other players, telling them to do /q and it will give them (insert good thing) I have tried to keep it under control but I thought a better...
Forum: Filterscripts 17/04/2013, 01:38 PM
Replies: 1,170
Sticky: Useful Snippets
Views: 602,183
Posted By vvhy
Post String Contains an IP

Stock function that will find if a string contains an IP address. Useful for anti advertising.

#define MAX_NUM 10
#define MY_SERVER_IP "255.255.255.255:7777"
stock ContainsIP(const string[])
{...
Forum: Scripting Help 13/04/2013, 04:06 PM
Replies: 6
Views: 967
Posted By vvhy
Re: Anti bike passenger DB godmode not working

This just takes the weapon away no matter what, even if their is someone in the driver seat of the bike and at no time does it give it back.
Showing results 1 to 25 of 145

 

All times are GMT. The time now is 04:29 PM.


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