הפונקצייה נקראת - 'GetProfile' היא משיגה את השם של השחקן, איפי של השחקן, והאידי שלו (ניתן להוסיף רמה וכדומה, כמו הסטאטס שיש לרובכם במוד) באופן אקראי (רנדומאלי).
הפונקצייה:
PHP Code:
stock GetProfile()
{
new Profile[MAX_PLAYER_NAME] = MAX_PLAYERS();
new string[256];
new IP[128];
int Profile = "%s", [GetPlayerIp][MAX_PLAYER_NAME];
while(!IsPlayerConnected(Profile)) Profile = random(MAX_PLAYERS);
GetPlayerName(playerid,Profile,sizeof(Profile));
GetPlayerIp(giveplayerid, IP, sizeof(IP));
format(string,sizeof(string),"Profile: Name - %s | IP - %p | ID: %p ",Profile,IP,playerid);
SendClientMessageToAll(lblue,string);
return Profile;
}
אל תשימו לב לint זה סתם משהו שבדקתי, תהנו.