help with tag and more
#1

so i made add a rank sys and i want that if the player rank ** its he will have tag
i did try this
Quote:

public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][Rank] == 0)
{
new msg[128];
format(msg, sizeof(msg), "[ID=%i] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
if(PlayerInfo[playerid][Rank] == 1)
{
new msg[128];
format(msg, sizeof(msg), "[Vip|ID=%i] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
return 0;
}

but when i wirte some thing its do not wirte a thing if i loggin and not loggin some thing
and i want 2 add auto login
i did add in on connect
Quote:

new IP[100];
GetPlayerIp(playerid,IP);

and that its becuse i dont know what i need
and that player need 2 login 2 spawn
Reply
#2

some 1 ?
Reply
#3

Don't bump you topic unless no one has replied
on it for 12 hours. Only bump your topic per 12 hours.
In short click teh link http://forum.sa-mp.com/index.php?topic=67900.0
Reply
#4

and if i dont bump my my topic no 1 will help
becuse its will be 1 or 2 pages that moved
and if some 1 dont want help dont post
Reply
#5

public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][Rank] == 0)
{
new msg[128];
format(msg, sizeof(msg), "[ID=%d] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
if(PlayerInfo[playerid][Rank] == 1)
{
new msg[128];
format(msg, sizeof(msg), "[Vip|ID=%d] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
return 0;
}
Reply
#6

I don't understand what else you are saying.

What is the point of having a login system if it is automatic (especially based on an IP Address)?
Reply
#7

the point that pepole that dont register cent play if they dont register
that way i need login before respawn
and auto login with on and off
becuse who register so he dont not need 2 login its automatic
and with on and off
Reply
#8

I have a login on my server, but players have to enter their password each time they connect (it isn't automatic based on their IP Address).

Try searching the forums for "login script"
Reply
#9

about the tag with rank
this still dont work when i wirte a thing command /**
its kill me and when i try 2 wirte in the chat its dont not post it
and about the thing never mind the auto login
how i can make that some 1 in 2 login 2 spawn ?
Reply
#10

Quote:
Originally Posted by cAMo
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][Rank] == 0)
{
new msg[128];
format(msg, sizeof(msg), "[ID=%d] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
if(PlayerInfo[playerid][Rank] == 1)
{
new msg[128];
format(msg, sizeof(msg), "[Vip|ID=%d] %s", playerid, text);
SendPlayerMessageToAll(playerid, msg);
}
return 0;
}
This means if you type:

Hello, I'm John Doe.

Depending on your rank, everyone will see something like:

[Vip|ID=15] Hello, I'm John Doe.

It has nothing to do with a command. Commands are defined under OnPlayerCommandText, not OnPlayerText.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)