Problema in skin randoms
#1

why not give the skin randoms to each team

How do I give him a random skin when he dies too?

Code:

PHP код:

new Dragons[] = { 46143244195 };
new 
Templarios[] = { 58667295122184 };
new 
Members[] = { 293292273195134};
//OnGameModeInit
    
AddPlayerClassEx(DRAGONSDragons[random(6)], 318.8639,1121.6978,1083.8828,180.165924,999990,00,0);
    
AddPlayerClassEx(TEMPLARIOTemplarios[random(6)], 2264.5317,-1209.7946,1049.0234,253.036724,999990,00,0);
    
AddPlayerClassEx(MEMBERSMembers[random(6)], 2324.6138,-1143.4207,1050.4922,178.655924,999990,00,0); 
Reply
#2

Hello!

Try this:
PHP код:
//OnGameModeInit
AddPlayerClassEx(DRAGONSrandom(Dragons), 318.8639,1121.6978,1083.8828,180.165924,999990,00,0);
AddPlayerClassEx(TEMPLARIOrandom(Templarios), 2264.5317,-1209.7946,1049.0234,253.036724,999990,00,0);
AddPlayerClassEx(MEMBERSrandom(Members), 2324.6138,-1143.4207,1050.4922,178.655924,999990,00,0); 
EDIT: Sorry, it's a mistake!
Reply
#3

in the to all lines the error is


PHP код:
error 035argument type mismatch (argument 1
Reply
#4

How you defined DRAGONS, TEMPLARIOS and MEMBERS? #define?

This worked for me.
Код:
	
        #define DRAGONS 1
	#define TEMPLARIO 2
	#define MEMBERS 3
	
        new Dragons[] = { 4, 6, 14, 32, 44, 195 }; 
	new Templarios[] = { 58, 66, 72, 95, 122, 184 }; 
	new Members[] = { 293, 292, 273, 195, 134, 8 }; 
	
//OnGameModeInit 
    AddPlayerClassEx(DRAGONS, Dragons[random(6)], 318.8639,1121.6978,1083.8828,180.1659, 24,99999, 0,0, 0,0); 
    AddPlayerClassEx(TEMPLARIO, Templarios[random(6)], 2264.5317,-1209.7946,1049.0234,253.0367, 24,99999, 0,0, 0,0); 
    AddPlayerClassEx(MEMBERS, Members[random(6)], 2324.6138,-1143.4207,1050.4922,178.6559, 24,99999, 0,0, 0,0);
Reply
#5

If I have it defined like this


PHP код:
#define DRAGONS           6
#define TEMPLARIO         7
#define MEMBERS           8 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)