Script Request Thread #6
#41

Quote:
Originally Posted by DerickClark
View Post
Hi i need a /locksever (like dis)

/Locksever (password)
pawn Code:
CMD:lockserver(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
        return 1;
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /lockserver [password]");
    if(strlen(params) < 5 || strlen(params) > 30)
        return SendClientMessage(playerid, COLOR_RED, "ERROR: The password must be between 5 and 30 characters.");
       
    new
        szString[128]
    ;

    format(szString, sizeof(szString), "You have set the server password to: %s", params);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, szString);

    format(szString, sizeof(szString), "password %s", params);
    SendRconCommand(szString);
    return 1;
}
Please understand that the ONLY way to remove the server password is through a server reboot.
Reply
#42

1) Sniper Headshot FS player should get the kill
2) Dynamite, Homming missiles FS (Scripted WEapons) player should get the kill
3) Rustler boming FS with 2 sec interval in each drop, player should get the kill

__________________________________________________ ______________________

A /spree system which show's how many kills a player did
like

/spree = own kills and

/spree <id> = other's streak
Reply
#43

I'm looking for a /unlock (to unlock the car)

If a player get out of the car it auto un lock it Can someone fix dis one?:
Code:
CMD:lock(playerid, params[])
{
	#pragma unused params
	{
	    if(IsPlayerInAnyVehicle(playerid))
		{
		 	 for(new i = 0; i < MAX_PLAYERS; i++)
			 SetCarLockedState(GetPlayerVehicleID(playerid),i,false,true);
			 SendClientMessage(playerid,SUCCESS,"Your car has been locked!");
			 return 1;
		}
		else return SendClientMessage(playerid,COLOR_ERROR,"ERROR: You need to be in a vehicle");
	}
}
Reply
#44

hi
i need a example for capture zones
[make it without bugs]
Reply
#45

I need something like:

When a player has been inactive for 2 weeks he will automatic lose his house(s).
And the house will be putted for sale again.
Like a house cleanup.
Reply
#46

I need a CMD to add lines in the dialog in game.I`m scripting in MYSQL.

This is the dialog:
Code:
CMD:dev(playerid, params[])
{
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "xxxxxxxxxx", "xxxxxxxxxx", "Exit", "");
    return 1;
}
This will be the CMD:
Code:
CMD:changedev(playerid, params[])
{
     Script to add lines on dialog without deleting past lines.
}
Reply
#47

i need a Trucker rank + rank Attach3DTextLabelToPlayer
Reply
#48

Quote:
Originally Posted by DerickClark
View Post
I'm looking for a /unlock (to unlock the car)

If a player get out of the car it auto un lock it Can someone fix dis one?:
Code:
CMD:lock(playerid, params[])
{
	#pragma unused params
	{
	    if(IsPlayerInAnyVehicle(playerid))
		{
		 	 for(new i = 0; i < MAX_PLAYERS; i++)
			 SetCarLockedState(GetPlayerVehicleID(playerid),i,false,true);
			 SendClientMessage(playerid,SUCCESS,"Your car has been locked!");
			 return 1;
		}
		else return SendClientMessage(playerid,COLOR_ERROR,"ERROR: You need to be in a vehicle");
	}
}
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
     if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
     {
         for(new i = 0; i < MAX_PLAYERS; i++)
         SetCarLockedState(GetPlayerVehicleID(playerid),i,false,true);
         SendClientMessage(playerid,SUCCESS,"Your car has been automatically locked!");
         return 1;
     }
}
put the spaces and TABs correctly
Reply
#49

i need a /dlabel [for delete label]
if i don't get close to the label it say:get close to a label to delete.
+
i need a label in game create.
like dis:

/createlabel [Text] [Colors]
With dis:i need a color


Code:
CMD:label(playerid, params[])
{
    if (APlayerData[playerid][PlayerLevel] >= 7)
    {
	new string[160],Float: X, Float: Y, Float: Z,text[100],distance;
	GetPlayerPos(playerid,  X,Y,Z);
	if(sscanf(params,"sd",text,distance)) return SendClientMessage(playerid,0xFB9204FF,"USAGE: /label [text][distance]");
	Create3DTextLabel(text,0x03B8FCFF,X,Y,Z,distance,GetPlayerVirtualWorld(playerid));
	format(string,sizeof(string),"Create3DTextLabel(\"%s\",0x03B8FCFF,%f, %f, %f,%d,%d);",text,X,Y,Z,distance,GetPlayerVirtualWorld(playerid));
 	SaveToLog("labels",string);
 	}
	return 1;
}
Reply
#50

I found the command /levelup in some GM but not WORK
and I want to request here Script / levelup, you may deign to know me to love the script /levelup
levelup from zcmd.. please

I often see the command / levelup but everything can not be used, and I wanted to requesting / levelup from zcmd.
Reply
#51

I need some hunger system which will save hunger % when player disconnect,example what i need:when player login the timer should be started and every 10 minutes 5 % of hunger will go down,also some textdraw would be great that says "Hunger: 100/100% Depending of how much is player hungry,and when he goes to restaurant to do /eat to fill up his hunger meter
Reply
#52

Just a bit off-topic, but if anyone needs some little coding help, or a little project done, feel free to PM me.
Helping out for free, anyway I can. I have tons of experience so more then likely i'll be able to do it for you.
Thanks guys
Reply
#53

In need of testers, and people to create a trailer on the custom roleplay island.
Reply
#54

HELP!!
House System SQLite
Reply
#55

A pickup that generates a certain amount of money in a certatin amount of time. (that is easy adjustable )
Reply
#56

Quote:
Originally Posted by Str4ndb3rg
View Post
A pickup that generates a certain amount of money in a certatin amount of time. (that is easy adjustable )
pawn Code:
new PickUpMoney;//At top.

SetTimer("Pickupmoney", 3000, true); //OnGameModeInIt


PickUpMoney = CreatePickup(1212, 1, -1286.9160,2515.5571,87.1208, 0); //OnGameModeInIt also, change the location to any you want and move the cords to is player in range of point..

forward Pickupmoney(playerid);
public Pickupmoney(playerid);
{
    if(IsPlayerInRangeOfPoint(playerid, -1286.9160,2515.5571,87.1208); //
    {
        GivePlayerMoney(playerid, 200);
        GameTextForPlayer(playerid, "~w~~h~Stay ~b~~h~here ~w~to get ~g~~h~money ~w~every ~b~~h~3 ~w~seconds", 4000, 4);
    }
}
Reply
#57

dcmd_getid [PlayerName] ?? help
Reply
#58

Hey~ Anyone know how to edit vehicle attached object with 0.3e editor ? :v
Reply
#59

https://sampforum.blast.hk/showthread.php?tid=282883
Reply
#60

Looking for anyone to help me make a police unit system!
Would go like this! If a person types the command "/uniton ( Unit is open for calls ) " then a suprivorsy or anyranking member could do " /units " and it would show a list of units that are can take calls would be good if it displayed it in an little box! They can also do " /unitoff " ( unit is currently busy! ) i would like the unit numbers to be the ids of the players so if i were to do " /units " it would look like this
-------- Units open for calls -------
John Smith (46)
Thomas Smith (5)
--------------------------------
if instead of text it could go like this
https://sampwiki.blast.hk/wroot/images2/...style_list.png
the ( ? ) means there ids! .

Also please add comments so I can learn and work off of it! Rep +
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)