05.04.2010, 02:21
Hi, I am PatrickChucky, and this is my first TUT.
Is about "How to create Random Skins
In this TUT i create random skins with command and at the spawn
Lets go!
Through the command:
Over public OnGameModeInit()
now at public OnPlayerCommandText(playerid, cmdtext[])
now Through the spawn:
Over public OnGameModeInit()
now at public OnPlayerSpawn(playerid)
P.S: Remember, if you want more skins change the number in //[random(3)] to the number of skins you have
easy I think
Is about "How to create Random Skins
In this TUT i create random skins with command and at the spawn
Lets go!
Through the command:
Over public OnGameModeInit()
Код:
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
};
Код:
if(strcmp(cmd, /testcmd, true) == 0)
{
SetPlayerSkin(skins[random(3)];
}
Over public OnGameModeInit()
Код:
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
};
Код:
{
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



eu sou PT
.