Dont be angry pls!
I learned making these type of cmds currently
CAN anyone of you pls tell after i learned/understood making these what should & from where should i learn next thing i mean something good to learn next :)
EDIT: I Think i just learned making cmds that too these simple ones what and from where should i learn next othere then utube tuts pls help plss i m new in scripting :(
#include RepForHelpxd
I learned making these type of cmds currently
Code:
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, 0xFFFFFF, "You took a easy way out!");
return 1;
}
CMD:healme(playerid, params[])
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0xFFFFFF, "Use have been healed by Heal System!");
return 1;
}
CMD:armourme(playerid, params[])
{
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, 0xFFFFFF, "You have been provided with armour by Armour system!");
return 1;
}
CMD:sawn(playerid, params[])
{
GivePlayerWeapon(playerid, 26, 999);
GivePlayerMoney(playerid, -10000);
SendClientMessage(playerid, 0xFFFFFF, "You have been provided sawnoffs with 999 ammo by lol system!");
return 1;
}
CMD:deagle(playerid, params[])
{
GivePlayerWeapon(playerid, 24, 999);
GivePlayerMoney(playerid, -10000);
SendClientMessage(playerid, 0xFFFFFF, "You have been given Deagle with 999 ammo by lol System!");
return 1;
}
CMD:mp4(playerid, params[])
{
GivePlayerWeapon(playerid, 31, 999);
GivePlayerMoney(playerid, -20000);
SendClientMessage(playerid, 0xFFFFFF, "You have been given mp4 with 999 ammo by lol System!");
return 1;
}
CMD:sniper(playerid, params[])
{
GivePlayerWeapon(playerid, 34, 999);
GivePlayerMoney(playerid, -20000);
SendClientMessage(playerid, 0xFFFFFF, "You have been given sniper with 999 ammo by lol System!");
return 1;
}
CMD:minigun(playerid, params[])
{
GivePlayerWeapon(playerid, 38, 9999);
GivePlayerMoney(playerid, -30000);
SendClientMessage(playerid, 0xFFFFFF, "You have been given minigun with 9999 ammo by lol System!");
return 1;
}
CMD:parachute(playerid, params[])
{
GivePlayerWeapon(playerid, 46, 10);
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, 0xFFFFFF, "You have been given 10 Parachutes by lol System!");
return 1;
}
CMD:givemoney(playerid, params[])
{
new targetid, amount;
if(sscanf(params,"ui", targetid, amount)) return SendClientMessage(playerid, 0xFFFFFF, "Incorrect syntax. Correct use /givemoney <playerid> <amount>");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "This command is only for RCON admins!");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFF, "Invalid id spacified!/player not connected!");
GivePlayerMoney(targetid, amount);
return 1;
}
CMD:ooc(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFF, "Usage /ooc [TEXT]");
format(string, sizeof(string), "(( %s: %s ))", sendername, params);
SendClientMessageToAll(0xFFFFFF, string);
return 1;
}
CMD:o(playerid, params[])
{
return cmd_ooc(playerid, params);
}
CMD:setskin(playerid, params[])
{
new targetid, skin, sendername[MAX_PLAYER_NAME], receivername[MAX_PLAYER_NAME], string[128];
if(sscanf(params,"ui", targetid, skin)) return SendClientMessage(playerid, 0xFFFFFF, "Syntax error! Correct usage /setskin [playerid] [skinid]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "This command is only for RCON admins!");
if(skin >299 || skin < 1) return SendClientMessage(playerid, 0xFFFFFF, "Wrong skin ID! Available skin IDs are 0-299! only");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(playerid, receivername, sizeof(receivername));
format(string, sizeof(string),"Your skin has been set to model %d by admin %s", skin, sendername);
SendClientMessage(targetid, 0xFFFFFF, string);
format(string, sizeof(string),"You have set %s skin to %d", receivername, skin);
SendClientMessage(playerid, 0xFFFFFF, string);
SetPlayerSkin(targetid, skin);
return 1;
}
EDIT: I Think i just learned making cmds that too these simple ones what and from where should i learn next othere then utube tuts pls help plss i m new in scripting :(
#include RepForHelpxd