Posts: 181
Threads: 45
Joined: Mar 2012
Reputation:
0
Can anybody make this script for me?? :
I cannot make score -1 code.Example: I have 104 score and i used /kill command then my score will set to 103
Can anybody help me please.
Posts: 161
Threads: 25
Joined: Mar 2012
Reputation:
0
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
}
Posts: 161
Threads: 25
Joined: Mar 2012
Reputation:
0
Yep, will edit it in.
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
new msg[128],
suicider[MAX_PLAYER_NAME];
GetPlayerName(playerid, suicider, sizeof suicider);
format(msg, sizeof(msg), "%s has commited suicide!", suicider);
SendClientMessageToAll(COLOR_RED, msg);
}
Posts: 181
Threads: 45
Joined: Mar 2012
Reputation:
0
Thank you both very much.And sorry for asking silly questions actually I am newbie in script.
Posts: 426
Threads: 46
Joined: Apr 2011
Quote:
Originally Posted by MichaelProPlayer
Thank you both very much.And sorry for asking silly questions actually I am newbie in script.
|
There's no problem in asking questions here, its Free and Unlimited..
Were always here to help (Even if i was too late to see this -.- )