Commands
#10

Quote:
Originally Posted by Dwane
Посмотреть сообщение
pawn Код:
playerskin = GetPlayerSkin( playerid );
if( playerskin >= 5 || playerskin <= 7 )
{
    // The skin is 5 or 6 or 7
}
Also with cases:
pawn Код:
playerskin = GetPlayerSkin( playerid );
switch( playerskin )
{
    case 5 .. 7: //the skins are from 5 to 7 (5, 6, 7)
}
Or if it's like 5, 6, 8 then you have to use it
pawn Код:
playerskin = GetPlayerSkin( playerid );
if( playerskin == 5 || playerskin == 6 || playerskin == 8 )
{
    // The skin is 5 or 6 or 8
}
But you can use also cases.
pawn Код:
playerskin = GetPlayerSkin( playerid );
switch( playerskin )
{
    case 5, 6, 8: // the skin is 5 or 6 or 8
}
Edit: Erm.. You asked me and then edited the post to
How to make random camera positions, I mean that the camera changes view every 2 second and after 3 views it goes to player skin selection?
Reply


Messages In This Thread
Commands - by Swc20 - 16.02.2012, 07:06
Re: Commands - by T0pAz - 16.02.2012, 07:08
Re: Commands - by Swc20 - 16.02.2012, 11:45
Re: Commands - by Mark™ - 16.02.2012, 11:48
Re: Commands - by MinazAhmed - 16.02.2012, 12:36
Re: Commands - by Swc20 - 16.02.2012, 12:41
Re: Commands - by Konstantinos - 16.02.2012, 12:46
Re: Commands - by Swc20 - 16.02.2012, 13:56
Re: Commands - by Konstantinos - 16.02.2012, 14:01
Re: Commands - by Swc20 - 16.02.2012, 15:20

Forum Jump:


Users browsing this thread: 9 Guest(s)