Back to scripting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Back to scripting (
/showthread.php?tid=544423)
Back to scripting -
Bek_Loking - 01.11.2014
Hey guys, some of you might remember me, some might not. I bet no one remembers me xD. Anyways, I was so bored today, I opened pawno and tried to remember some things, so I started scripting a bit. I knew how to do some basic stuff, and those bit-complicated things.
Anyways, I was kidding around and I made a command that worked without an error, from my first attempt in a year.. xD
PHP код:
CMD:unrekeverything(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF}Niggabitch, gather that fucking money and unrek the server...");
if(isgood[playerid] == 1) SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF}You is good, you need to rek the server now..");
else
{
isgood[playerid] = 1;
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, COLOR_BLUE, "You have successfully #unrekt the server. You may rek server by typing /rekeverything");
alreadyrekt[playerid] = 0;
}
return 1;
}
CMD:rekeverything(playerid, params[])
{
if(alreadyrekt[playerid] == 1) SendClientMessage(playerid, COLOR_RED,"[ERROR]{FFFFFF}You already rekt the server...");
else
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_AQUA, "You have successfully #rekt the server. You may now unrek by typing /unrekeverything");
alreadyrekt[playerid] = 1;
isgood[playerid] = 0;
}
return 1;
}
If we scaled hardness of scripting commands from 1 / 10
I'd like someone of you guys to give me a task that would be hard like 3.5/10 in scripting of course.
Re: Back to scripting -
Blademaster680 - 01.11.2014
Why not try make a vehicle spawn command? for rcon admins