(SOLVED)HELP again
#1

Here I am again with another question. Is it possible for players to take a skin picking only possible with a TAG before their name?
For example: People with [COP] infront of their name can pick the skin but people without that TAG can't pick the skin.
Reply
#2

Hello anyone can help or answer me?
Reply
#3

if no one will post dont make another post to tell if we can help you no you cant have that thing with tag
Reply
#4

Could there be an other system than? I don't want everyone to take Police team
Reply
#5

new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName, "[COP]", true) == 0)
{
//ur code
}
else
{
SendClientMessage(playerid,COLOR_RED,"You Don't Have [COP] In Your Name");
}
Reply
#6

Quote:
Originally Posted by Etch ❽ H
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName, "[COP]", true) == 0)
{
//ur code
}
else
{
SendClientMessage(playerid,COLOR_RED,"You Don't Have [COP] In Your Name");
}
with that only who have the name [COP] can have the skin maybe he want more players to have this skin like [COP]Nick , [COP],Franky
Reply
#7

that code check if the name has [COP] anywhere in his name , if he does , he can get it
Reply
#8

I want to try that... Under what line do I have to add that?
Reply
#9

i dont know maybe it will work
Reply
#10

It worked! I've changed a little bit about what he said and it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)