23.10.2011, 23:58
Yes, the first one is almost right.
playerid = The default ID
playerb = target ID (in your case)
pawn Код:
// freeze command
new string[128], name[24];
GetPlayerName(playerb,name,24); // getting the name of the target (playerb)
format(string,128,"You Have Successfully Frozen Player %s (%d)",name,playerb); // name, id of playerb
SendClientMessage(playerid,-1,string); // sending the above message to the admin
// unfreeze command
new string[128], name[24];
GetPlayerName(playerb,name,24); // getting the name of the target (playerb)
format(string,128,"You Have Successfully Unfrozen Player %s (%d)",name,playerb); // name, id of playerb
SendClientMessage(playerid,-1,string);
playerb = target ID (in your case)