15.05.2013, 17:26
Por favor galera queria colocar o comando skin no meu gm, alguйm pode da uma forcinha ai ?
/skin ID
/skin ID
Код:
dcmd(skin,4,cmdtext;
dcmd(skin,4,cmdtext;
{
if ( isnull ( params ) )
return SendClientMessage ( playerid, -1, "[ USE ]: /skin [ID]" ) ;
static xCelulas [ 30 ] ;
SetPlayerSkin ( playerid, strval ( params ) ) ;
format ( xCelulas, 30, "Vocк colocou a skin ID: %d", strval ( params ) ) ;
SendClientMessage ( playerid, -1, xCelulas ) ;
return 1;
}
new
int_skin;
if ( sscanf ( params, "i", int_skin ) )
return SendClientMessage ( playerid, -1, "Utilize: /skin [skinid]" );
if ( 0 > int_skin > 299 )
return SendClientMessage ( playerid, -1, "Utilize somente IDs entre 0 e 299." );
SetPlayerSkin ( playerid, int_skin );
return 1;
if ( 0 > int_skin > 299 )
if ( ! ( -1 < int_skin < 300 ) )
new int_skin;
dcmd(skin,4,cmdtext);
dcmd_skin(playerid, params[])
#pragma unused params
{
if ( sscanf ( params, "i", int_skin ) )
return SendClientMessage ( playerid, -1, "Utilize: /skin [skinid]" );
if ( ! ( -1 < int_skin < 300 ) )
return SendClientMessage ( playerid, -1, "Utilize somente IDs entre 0 e 299." );
SetPlayerSkin ( playerid, int_skin );
return 1;
}
dcmd_skin(playerid, params[])
{
if(isnull(params))
return SendClientMessage ( playerid, -1, "Utilize: /skin [skinid]" );
new int_skin = strval(params);
if ( ! ( -1 < int_skin < 300 ) )
return SendClientMessage ( playerid, -1, "Utilize somente IDs entre 0 e 299." );
SetPlayerSkin ( playerid, int_skin );
return 1;
}