if(strcmp(cmd, \"/skinsel\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /skinsel [playerid/PartOfName]\");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \" AdmCmd: %s-t skinválasztóba küldte %s! \", giveplayer, sendername);
SendAdminMessage(COLOR_LIGHTRED, string);
format(string, sizeof(string), \" AdmCmd: Skinválasztóba küldött %s!\", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
ForceClassSelection(giveplayerid);
}
}
}
else
{
format(string, sizeof(string), \" %d nem aktív játékos.\", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
GFbe írtam gondolom oda kell.