Posts: 77
Threads: 14
Joined: Jul 2016
Reputation:
0
How can i create special permissions for a particular name ? For e.g
This msg is shown only if a player named "Omer" logs into the server:
>> Server Owner Omer has logged in.
If anyone can help me with this name login example, that would be appreciated.
Posts: 186
Threads: 36
Joined: Dec 2017
PHP код:
//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");
}
Posts: 186
Threads: 36
Joined: Dec 2017
Quote:
Originally Posted by OmerKhan
Код:
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);
The msg dosen't appears!
|
PHP код:
new playeridname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playeridname, sizeof(playeridname));
if(strfind(playeridname,"Omer",false) != 0) SendClientMessageToAll(COLOR_ORANGE, ">> Omer has logged in.");
Posts: 186
Threads: 36
Joined: Dec 2017
PHP код:
new playeridname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playeridname, sizeof(playeridname));
if (strfind(playeridname, "Omer", true) != -1){
SendClientMessageToAll(COLOR_ORANGE, ">> Omer has logged in.");
}
Posts: 675
Threads: 160
Joined: Mar 2015
Reputation:
0
Give us your on player connect line
Posts: 186
Threads: 36
Joined: Dec 2017
make it
Код:
ShowStatistics(playerid); to ShowStatistics(target);