Re: Script Request Thread #6 -
Scenario - 19.02.2013
Quote:
Originally Posted by DerickClark
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.
Re: Script Request Thread #6 -
Insulin - 26.02.2013
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
Re: Script Request Thread #6 -
DerickClark - 02.03.2013
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");
}
}
Re: Script Request Thread #6 -
MehranGta - 02.03.2013
hi
i need a example for capture zones
[make it without bugs]
Re: Script Request Thread #6 -
NathNathii - 02.03.2013
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.
Re: Script Request Thread #6 -
TFreemen - 02.03.2013
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.
}
Re: Script Request Thread #6 -
DerickClark - 02.03.2013
i need a Trucker rank + rank Attach3DTextLabelToPlayer
Re: Script Request Thread #6 -
L.Hudson - 03.03.2013
Quote:
Originally Posted by DerickClark
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
Re: Script Request Thread #6 -
DerickClark - 03.03.2013
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;
}
Re: Script Request Thread #6 -
AlbertWeSkeR - 04.03.2013
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.
Re: Script Request Thread #6 -
ZeroCools - 04.03.2013
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
Re: Script Request Thread #6 -
SomeRandomGuy123 - 04.03.2013
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
Re: Script Request Thread #6 -
Kontrol - 05.03.2013
In need of testers, and people to create a trailer on the custom roleplay island.
Re: Script Request Thread #6 -
proSeryoga - 05.03.2013
HELP!!
House System SQLite
Re: Script Request Thread #6 -
Str4ndb3rg - 05.03.2013
A pickup that generates a certain amount of money in a certatin amount of time. (that is easy adjustable
)
Respuesta: Re: Script Request Thread #6 -
Strier - 07.03.2013
Quote:
Originally Posted by Str4ndb3rg
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);
}
}
AW: Script Request Thread #6 -
Youtube12 - 07.03.2013
dcmd_getid [PlayerName] ?? help
Re: Script Request Thread #6 -
RenovanZ - 07.03.2013
Hey~ Anyone know how to edit vehicle attached object with 0.3e editor ? :v
Re : Script Request Thread #6 -
thegreathom - 07.03.2013
https://sampforum.blast.hk/showthread.php?tid=282883
Re: Script Request Thread #6 -
RavGaming - 08.03.2013
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 +