(SOLVED)HELP again - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (SOLVED)HELP again (
/showthread.php?tid=148552)
(SOLVED)HELP again -
Ykelder - 17.05.2010
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.
Re: HELP again -
Ykelder - 18.05.2010
Hello anyone can help or answer me?
Re: HELP again -
Mr L - 18.05.2010
if no one will post dont make another post to tell if we can help you no you cant have that thing with tag
Re: HELP again -
Ykelder - 18.05.2010
Could there be an other system than? I don't want everyone to take Police team
Re: HELP again -
aircombat - 18.05.2010
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");
}
Re: HELP again -
Mr L - 18.05.2010
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
Re: HELP again -
aircombat - 18.05.2010
that code check if the name has [COP] anywhere in his name , if he does , he can get it
Re: HELP again -
Ykelder - 18.05.2010
I want to try that... Under what line do I have to add that?
Re: HELP again -
Mr L - 18.05.2010
i dont know maybe it will work
Re: HELP again -
Ykelder - 18.05.2010
It worked! I've changed a little bit about what he said and it worked