pawn Код:
CMD:invite(playerid, params[])
{
new target,playern[MAX_PLAYER_NAME];
GetPlayerName(target,playern,MAX_PLAYER_NAME);
format(name, sizeof(name), "[3p]%s", playern);
format(name1, sizeof(name1), "[HS]%s", playern);
if(leader3p[playerid] == 1)
{
if(sscanf(params, "ud", target)) return SendClientMessage(playerid, 0xFFFF00AA, "Syntax: /invite id");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "Invalid playerid!");
SetPlayerName(target,name);
}
if(leaderhs[playerid] == 1)
{
if(sscanf(params, "ud", target)) return SendClientMessage(playerid, 0xFFFF00AA, "Syntax: /invite id");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "Invalid playerid!");
SetPlayerName(target,name1);
}
return 1;
}