22.05.2010, 23:16
Quote:
Originally Posted by [PT
PatrickChucky™ ]
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() Код:
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 |