Professional Documents
Culture Documents
(Tutorial) (TUT) Random Skins - SA-MP Forums
(Tutorial) (TUT) Random Skins - SA-MP Forums
SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials User Name User Name Remember Me?
[Tutorial] [TUT] Random Skins Password Log in
Ne w Account Com m unity Today's Pos ts Se arch
Page 1 of 2 1 2 >
05/04/2010, 02:21
#1
AM
In this TUT i create random skins with command and at the spawn
Lets go!
C ode:
new skins[] = {
0, //Here you put the id of the skin
1, //Here you put the id of the skin
2 //Here you put the id of the skin
};
C ode:
C ode:
new skins[] = {
0, //Here you put the id of the skin
1, //Here you put the id of the skin
2 //Here you put the id of the skin
};
C ode:
{
SetPlayerSkin(playerid, skins[random(3)]); //[random(3)] -->>> the 3 is the numver of skins you but in public
return 1;
}
P.S: Remember, if you want more skins change the number in //[random(3)] to the number of skins you have
easy I think
__________________
[GM]Chucky DM
[MAP]Hospital Interior
[MAP]Prison Outside
[MAP]Village
https://forum.sa-mp.com/showthread.php?t=139456 1/4
24/10/2019 [Tutorial] [TUT] Random Skins - SA-MP Forums
22/05/2010, #
11:16 PM
In this TUT i create random skins with command and at the spawn
Lets go!
Join Date: Apr
2010 Through the command:
Location:
Santa C atarina Over public OnGameModeInit()
Posts: 6,848
Reputation: C ode:
665
new skins[] = {
0, //Here you put the id of the skin
1, //Here you put the id of the skin
2 //Here you put the id of the skin
};
C ode:
if(strcmp(cmd, /testcmd, true) == 0)
{
SetPlayerSkin(skins[random(3)];
}
C ode:
new skins[] = {
0, //Here you put the id of the skin
1, //Here you put the id of the skin
2 //Here you put the id of the skin
};
C ode:
{
SetPlayerSkin(playerid, skins[random(3)]); //[random(3)] -->>> the 3 is the numver of skins you but in public OnGameModeInit
return 1;
}
P.S: Remember, if you want more skins change the number in //[random(3)] to the number of skins you have
easy I think
God
__________________
22/05/2010, 11:43 PM #3
18/06/2010, 12:23 PM #4
https://forum.sa-mp.com/showthread.php?t=139456 2/4
24/10/2019 [Tutorial] [TUT] Random Skins - SA-MP Forums
Quote:
Originally Posted by TheGarfield
God
God? or Good xD
18/06/2010, 12:27 PM #5
09/07/2010, 03:56 AM #6
19/10/2012, 07:43 PM #7
03/02/2013, 09:48 AM #8
03/02/2013,
#9
09:55 AM
https://forum.sa-mp.com/showthread.php?t=139456 3/4
24/10/2019 [Tutorial] [TUT] Random Skins - SA-MP Forums
Page 1 of 2 1 2 >
Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Rules
Similar Threads
Thread Thread Starter Forum Replies Last Post
Random payment to Random player ViruZZzZ_C hiLLL Help Archive 1 01/05/2010 05:43 PM
[Q] Array Problem Involving random skins [ERP]Snow Help Archive 3 19/07/2009 11:17 AM
https://forum.sa-mp.com/showthread.php?t=139456 4/4