17.11.2017, 01:06
PHP код:
Define, provavelmente no topo da gamemode
#define SLOTcolete 4
if ( strcmp ( cmdtext , "/att" , true ) == 0 ) {
SetPlayerAttachedObject( playerid , SLOTcolete , 19142 , 1 , 0.1 , 0.05 , 0.0 , 0.0 , 0.0 , 0.0 ) ;
SendClientMessage ( playerid ,COR_PRINCIPAL, "» Colocou colete com sucesso.");
return true ;
}
if ( strcmp ( cmdtext , "/rtt" , true ) == 0 ) {
RemovePlayerAttachedObject(playerid, SLOTcolete);
SendClientMessage(playerid ,COR_PRINCIPAL , "» Retirou colete com sucesso.");
return true ;
}