Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: rathore on January 11, 2014, 03:11:31 pm
-
I fixed this command admin please check this command is working or not if it is not working then please inform me
add this in onplayer death
[pawn]
if(pInfo[playerid][brb] == 1)
{
SetPlayerHealth(killerid,0);
SendClientMessage(killerid,RED,"[Server] No Killing If Player Is Away");
}
[/pawn]
add this under the enum piInfo....
[pawn]
new playerisbrb[MAX_PLAYERS];
new Float:Heal; [/pawn]
and just simply add this command in (!) command area....
[pawn]
else if (strcmp(cmd, "brb", true) == 0 )
{
if(!playerisbrb[playerid])
{
format( szMsg, 128, "%s Will Be Right Back",gPlayers[playerid]);
SendClientMessageToAll(COLOR_BLUE, szMsg);
GetPlayerHealth( playerid,Heal);
SetPlayerHealth( playerid,100);
TogglePlayerControllable(playerid,0);
playerisbrb[playerid]=1;
}
return 1;
}
else if ( strcmp( cmd, "back", true ) == 0 )
{
if(!playerisbrb[playerid])
{
SendClientMessage(playerid, COLOR_WHITE, "You are not in the BRB
mode.");
}
else
{
format( szMsg, 128, "%s Is Back On Game!" ,gPlayers[playerid]);
SendClientMessageToAll(COLOR_BLUE, szMsg);
SetPlayerHealth( playerid,Heal);
TogglePlayerControllable(playerid,1);
playerisbrb[playerid]=0;
}
return 1;
} [/pawn]
-
LOOOOL
SetPlayerHealth( playerid, 99999999);
Don't Work ;D
-
I am such a popular coder that newbies (Myself I'm newbie too, no shit) are copying me
-
NOW Check it... it is working for me
-
Sorry NeskWriter i thought !afk command is maked by aledark
:) :) :) :) :) :)
I dunno what he said but he's probably a liar with experience :D
-
Sorry NeskWriter i thought !afk command is maked by aledark
:) :) :) :) :) :)
I dunno what he said but he's probably a liar with experience :D
LOL ;D
-
Rathore Try Edit Button :D ( I Mean Dont Double Post )
-
ADVANCE BRB SYSTEM [By NeskWriter & Rathore(me)]
This is not really code I helped you to write, it is just very similar to mine.
-
Like i said plz stop spamming my scripts.
Stormeus will remove it.
-
Just by looking at the code I can tell you this wont work as intended.
-
Like i said plz stop spamming my scripts.
Stormeus will remove it.
Nope.
;D Kidding man dont take it serious
BTW Will strom remove it ?
-
Will strom remove it ?
I'll flag it as non-functional and leave it to the author to see why it won't work and fix it.
-
Will strom remove it ?
I'll flag it as non-functional and leave it to the author to see why it won't work and fix it.
Thanks i got the problem i will fix it in few days
-
Nice
well done Rathore