Need help from scripter
#1

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
Reply
#2

I mentioned in your previous topic what you gotta do, you should ask in this thread: https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#3

That post has about 1000 replies
Pls guys I have to create my server commands ASAP help me fast
Reply
#4

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.
Reply
#5

Till then I'll learn to script by looking at your's script
Reply
#6

Hello, Advait, check my PM
Reply
#7

/sendmoney:
PHP код:
CMD:sendmoney(playeridparams[])
{
    new 
giveplayeridamountMessage[128], pName[MAX_PLAYER_NAME],pName1[MAX_PLAYER_NAME],Message1[128];
    if (
sscanf(params"ud"giveplayeridamount)) SendClientMessage(playerid0xf8f8f8ff"Syntax: {f00f00}/sendmoney [playerid/partname] [amount]");
    else if (!
IsPlayerConnected(giveplayerid)) SendClientMessage(playerid0xf8f8f8fff"ERROR: {FFFFFF}Player isn't connected!");
    else if (
giveplayerid == playeridSendClientMessage(playerid0xf8f8f8fff"ERROR: {F00f00}You cannot send money to yourself!");
    else if (
amount GetPlayerMoney(playerid)) SendClientMessage(playerid0xf8f8f8fff"ERROR: {Ffffff}You Don't have that much!");
    else if (
amount 0SendClientMessage(playerid0xf8f8f8fff,"ERROR: {f00f00}Wrong Value!");
    else
    {
        
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        
GetPlayerName(giveplayerid,pName1,MAX_PLAYER_NAME);
        
GivePlayerMoney(giveplayeridamount);
        
GivePlayerMoney(playerid, -amount);
        
format(Messagesizeof(Message), "You have Received $%d From {f00f00}%s(%d)!",amountpNameplayerid);
        
SendClientMessage(giveplayerid,-1Message);
        
GameTextForPlayer(giveplayerid"~W~! ~Y~RECEIVED ~G~CASH ~W~!"3000,3);
        
format(Message1sizeof(Message1), "Successfully sent $%d to {f00f00}%s(%d)!",amountpName1giveplayerid);
        
SendClientMessage(playerid,-1Message1);
        
GameTextForPlayer(playerid"~W~! ~G~CASH ~y~SENT ~W~!"3000,3);
    }
    return 
1;

/god:
PHP код:
new God[MAX_PLAYERS];
CMD:god(playeridparams[])
{
        if (
God[playerid] == 1)
        {
            
SendClientMessage(playeridCOLOR_RED".:. {e6e600}You have disabled god mode.");
            
SetPlayerHealth(playerid100);
            
SetPlayerArmour(playerid100);
            
God[playerid] = 0;
            return 
1;
         }
         else if(
God[playerid] == 0)
         {
             
SendClientMessage(playeridCOLOR_GREEN".:. {ff3399}You have enabled god mode.");
            
God[playerid] = 1;
            
SetPlayerArmour(playerid9999999);
            
SetPlayerHealth(playerid9999999);
            return 
1;
        }
        return 
1;

/heal:
PHP код:
CMD:heal(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
    new 
targetidstring[100];
    if(
sscanf(params"i"targetid)) return SendClientMessage(playerid0xF8F8F8FFF"[SYNTAX]: {FFFFFF}/heal {FF0000}[PlayerID]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid0xF8F8F8FFF"[ERROR]: {FFFFFF}This player is {FF0000}NOT {FFFFFF}connected!");
    
SetPlayerHealth(targetid100.0);
    
format(stringsizeof(string), "* {FFFFFF}Administrator {FFD700}%s(ID:%d) {FFFFFF}has Healed {FFD700}%s(ID:%d){FFFFFF}!"GetName(playerid), playeridGetName(targetid), targetid);
    
SendClientMessageToAll(0xF8F8F8FFFstring);
    }
    else
    {
    
SendClientMessage(playerid0xF8F8F8Fff"* {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(playeridnameMAX_PLAYER_NAME);
   
format(stringsizeof(string), "{00ffff}: {F00f00}%s Has Dead. (/kill)"name);
   
SendClientMessageToAll(0xF8F8F8FFFstring);
   return 
1;

Reply
#8

Hey where should I paste this commands??
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)