Help me
#1

Hello like i've a RP server i want my name to be "Joey" not "Joey_Owner" how can i do this?
If i set my name to Joey then log it says use Firstname_Lastname.
Reply
#2

Show Me Your On Player Connect
Reply
#3

Post your OnPlayerConnect please so we can help you.
Reply
#4

Go to your server folder open "scriptfiles" folder then "users" and find Joey_Owner, Change it to Joey_...Put here what you want... and rejoin and it works


or if you want that lastnames aren't used then remove this part. do as i say

ctrl + f - type in: public onplayerconnect

now look down until you see something like

Код:
new namestring = strfind(plname, "_", true);
 	if(namestring == -1)
	{
		SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
		SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
		Kick(playerid);
		return 1;
	}
delete it, compile, restart server, run, Done
Reply
#5

Hey guys, how can I make this:

Player's name is: Shadow_samp

So I want only the first name: Shadow.

Anybody knows make this code ?
Reply
#6

@Shadow, I think it's strtok
Reply
#7

Forget .. I found this:

PHP код:
public split(const strsrc[], strdest[][], delimiter)
{
    new 
ili;
    new 
aNum;
    new 
len;
    while(
<= strlen(strsrc)){
        if(
strsrc[i]==delimiter || i==strlen(strsrc)){
            
len strmid(strdest[aNum], strsrclii128);
            
strdest[aNum][len] = 0;
            
li i+1;
            
aNum++;
        }
        
i++;
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)