01.11.2014, 20:07
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
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.
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;
}
I'd like someone of you guys to give me a task that would be hard like 3.5/10 in scripting of course.