Need help from scripter -
Advait - 31.03.2017
Guys I need help from a scripter who can create commands such as
/god
/heal
/kill
/change name
/superjump
/speedboost
/givecash
/change time
Guys I have just created a new server so its necessary to have this basic commands I am busy with maps so I can't script (this is not real reason real reason is I don't know scripting)
Advait is online now Add to Advait's Reputation Report Post Edit/Delete Message Reply With Quote Multi-Quote This Message Quick reply to this message
Re: Need help from scripter - Jelly23 - 31.03.2017
I mentioned in your previous topic what you gotta do, you should ask in this thread:
https://sampforum.blast.hk/showthread.php?tid=447813
Re: Need help from scripter -
Advait - 31.03.2017
That post has about 1000 replies
Pls guys I have to create my server commands ASAP help me fast
Re: Need help from scripter -
LazzyBoy - 31.03.2017
well even if you get these commands , server will need more and more so i dont think you will keep asking us to script for you for any command so learn script like we all did.
Re: Need help from scripter -
Advait - 31.03.2017
Till then I'll learn to script by looking at your's script
Re: Need help from scripter -
MarkNelson - 31.03.2017
Hello, Advait, check my PM
Re: Need help from scripter -
iMaxy - 31.03.2017
/sendmoney:
PHP код:
CMD:sendmoney(playerid, params[])
{
new giveplayerid, amount, Message[128], pName[MAX_PLAYER_NAME],pName1[MAX_PLAYER_NAME],Message1[128];
if (sscanf(params, "ud", giveplayerid, amount)) SendClientMessage(playerid, 0xf8f8f8ff, "Syntax: {f00f00}/sendmoney [playerid/partname] [amount]");
else if (!IsPlayerConnected(giveplayerid)) SendClientMessage(playerid, 0xf8f8f8fff, "ERROR: {FFFFFF}Player isn't connected!");
else if (giveplayerid == playerid) SendClientMessage(playerid, 0xf8f8f8fff, "ERROR: {F00f00}You cannot send money to yourself!");
else if (amount > GetPlayerMoney(playerid)) SendClientMessage(playerid, 0xf8f8f8fff, "ERROR: {Ffffff}You Don't have that much!");
else if (amount < 0) SendClientMessage(playerid, 0xf8f8f8fff,"ERROR: {f00f00}Wrong Value!");
else
{
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
GetPlayerName(giveplayerid,pName1,MAX_PLAYER_NAME);
GivePlayerMoney(giveplayerid, amount);
GivePlayerMoney(playerid, -amount);
format(Message, sizeof(Message), "You have Received $%d From {f00f00}%s(%d)!",amount, pName, playerid);
SendClientMessage(giveplayerid,-1, Message);
GameTextForPlayer(giveplayerid, "~W~! ~Y~RECEIVED ~G~CASH ~W~!", 3000,3);
format(Message1, sizeof(Message1), "Successfully sent $%d to {f00f00}%s(%d)!",amount, pName1, giveplayerid);
SendClientMessage(playerid,-1, Message1);
GameTextForPlayer(playerid, "~W~! ~G~CASH ~y~SENT ~W~!", 3000,3);
}
return 1;
}
/god:
PHP код:
new God[MAX_PLAYERS];
CMD:god(playerid, params[])
{
if (God[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, ".:. {e6e600}You have disabled god mode.");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
God[playerid] = 0;
return 1;
}
else if(God[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREEN, ".:. {ff3399}You have enabled god mode.");
God[playerid] = 1;
SetPlayerArmour(playerid, 9999999);
SetPlayerHealth(playerid, 9999999);
return 1;
}
return 1;
}
/heal:
PHP код:
CMD:heal(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new targetid, string[100];
if(sscanf(params, "i", targetid)) return SendClientMessage(playerid, 0xF8F8F8FFF, "[SYNTAX]: {FFFFFF}/heal {FF0000}[PlayerID]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xF8F8F8FFF, "[ERROR]: {FFFFFF}This player is {FF0000}NOT {FFFFFF}connected!");
SetPlayerHealth(targetid, 100.0);
format(string, sizeof(string), "* {FFFFFF}Administrator {FFD700}%s(ID:%d) {FFFFFF}has Healed {FFD700}%s(ID:%d){FFFFFF}!", GetName(playerid), playerid, GetName(targetid), targetid);
SendClientMessageToAll(0xF8F8F8FFF, string);
}
else
{
SendClientMessage(playerid, 0xF8F8F8Fff, "* {FFFFFF}You Have to be {FFD700}Admin Level 1{FFFFFF} at-least to use this command!");
}
return 1;
}
/kill:
PHP код:
CMD:kill(playerid,params[])
{
new string[128]; new name[MAX_PLAYER_NAME];
SetPlayerHealth(playerid,0.0);
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "{00ffff}: {F00f00}%s Has Dead. (/kill)", name);
SendClientMessageToAll(0xF8F8F8FFF, string);
return 1;
}
Re: Need help from scripter -
Advait - 01.04.2017
Hey where should I paste this commands??
Re: Need help from scripter -
Flamehaze7 - 01.04.2017
Quote:
Originally Posted by Advait
Hey where should I paste this commands??
|
You should paste your willing to learn in here instead:
https://sampwiki.blast.hk/wiki/Scripting_Basics