//onplayerconnect
new playeridname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playeridname, sizeof(playeridname));
if(strfind(playeridname,"Omer",false) != 0)
{
SendClientMessageToAll(COLOR_YOUWANT,"Server Owner Omer has joined the server");
}
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You have successfully logged in to the server."); new playeridname[MAX_PLAYER_NAME]; GetPlayerName(playerid, playeridname, sizeof(playeridname)); if(strfind(playeridname,"Omer",false) != 0) return format(string, sizeof(string), ">> Omer has logged in."); SendClientMessageToAll(COLOR_ORANGE, string);
Код:
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You have successfully logged in to the server."); new playeridname[MAX_PLAYER_NAME]; GetPlayerName(playerid, playeridname, sizeof(playeridname)); if(strfind(playeridname,"Omer",false) != 0) return format(string, sizeof(string), ">> Omer has logged in."); SendClientMessageToAll(COLOR_ORANGE, string); |
new playeridname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playeridname, sizeof(playeridname));
if(strfind(playeridname,"Omer",false) != 0) SendClientMessageToAll(COLOR_ORANGE, ">> Omer has logged in.");
new playeridname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playeridname, sizeof(playeridname));
if (strfind(playeridname, "Omer", true) != -1){
SendClientMessageToAll(COLOR_ORANGE, ">> Omer has logged in.");
}
CMD:stats(playerid, params[]) { LoginCheck(playerid); new target; new id; if(sscanf(params, "u", target)) { target = playerid; SendClientMessage(playerid, COLOR_RED, "TIP: {FFFFFF}You can also view other players stats by /stats [player id]"); } if(! IsPlayerConnected(target)) return SendClientMessage(playerid, COLOR_RED, "ERROR: The specified player is not conected."); if(User[playerid][accountAdmin] < User[id][accountAdmin]) return SendClientMessage(playerid, COLOR_RED, "* You cannot use this command on higher admin."); ShowStatistics(playerid); return 1; }
ShowStatistics(playerid); to ShowStatistics(target);