How to make a personal skin etc. - 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)
+--- Thread: How to make a personal skin etc. (
/showthread.php?tid=316854)
How to make a personal skin etc. -
Uhmazin - 08.02.2012
I wanted to know how can you script a personal skin, like if people try to use it, sometimes it say reserved for [Person Name] and sometimes it will have like you need 50score for it etc.
also how can you make it for cars
Re: How to make a personal skin etc. -
Ballu Miaa - 09.02.2012
Describe it more? What do you want? A command or under OnPlayerRequestClass or what?
Re: How to make a personal skin etc. -
Twinki1993 - 09.02.2012
Skin restriction.. easy.
PHP код:
new string[16];
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
if(GetPlayerSkin(playerid) < 5) //I used skin ID:5 for example. That "<5" to any that you wish
{
if((strfind(string, "MyName", true) != -1)) //Change MyName to desired name
SendClientMessage(playerid, COLOR_RED, "Welcome"); //Sends the client message that you want, you can delete this too
}
else //If the name is not the name that you wish
{
Kick(playerid); //if it's not the right name he/she will get kicked
}